Mobile app version of vmapp.org
Login or Join
BetL925

: Store utm values on my server Is it possible to know, what campaign source, media, etc are set for current session in google analytics? Is there some javascript method on Tracker instance maybe?

@BetL925

Posted in: #GoogleAnalytics

Is it possible to know, what campaign source, media, etc are set for current session in google analytics? Is there some javascript method on Tracker instance maybe? or some serverside code? Or does google analytics
work as a blackbox, and not queriable per user?

I have a lot of e-commerce data, which is serverside tracked, by my server code. So I'm looking for a way to pass utm values to server, so it could track them too. I understand that I could pass more e-commerce information to analytics.js from serverside, but can I have dataflow in another direction too?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @BetL925

1 Comments

Sorted by latest first Latest Oldest Best

 

@Karen161

UTM values are in the query string. Just get those URL parameters!

google.com/?utm_source=the_source&utm_medium=the_medium&utm_term=the_term&utm_content=the_content&utm_campaign=the_name

In PHP, you can inspect the values using $_GET['utm_source'] for example.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme