I am using Google tag Manager and Google Analytics.
I have a link on my yelp page like example.com/?utm_source=Yelp
.
What I want is to be able to track that source even if the user clicks on a different link on my website, say to example.com/new-article.
So if a user fills out a form on that page, I know the user came from Yelp.
Summary:
A customer goes from Yelp to example.com then clicks another link. How can I still know that the user came from Yelp?
One strategy is I can append utm_source=$_GET['utm_source'] on all links on my page, but I assume google analytics or google tag manager has already solved that problem. I'm having trouble finding information on this.
Source is a session-level dimension, so if a user comes to your site with a utm_source
param in the URL, that source dimension will be applied to all hits (pageviews, events, etc.) in the session.
In other words, you don't need to do anything special to make this work.