One page application campaign & referrer tracking Issue
One page application campaign & referrer tracking
We (Google Analytics Premium) use onepage- Angular JS Landingpages with an URL like that:
So as you can see the Landingpage-URL is using a fragment and the utm-parameters are placed behind the fragment.
To avoid problems with utm-parameters and the hash we used the allow-Linker = true field in our page view tags in GTM.
As soon as a user enters the landing page Google uses the utm-parameter as expected.
BUT as soon as a user is interacting with the site like picking a filter, the parameters behind the hash change and the utm-parameter aren’t shown in the URL anymore.
After this interaction and change of parameters in the URL, Universal Analytics picks the document.referrer which is given in the backend instead of referring to the UTM-parameter which were used for entering the landing page in the first place.
Does anybody have some experiences on one page- Angular js. Application website tracking and do know a solution for this problem as we suffer a huge loss on Source-Data.
We would appreciate any idea
Re: One page application campaign & referrer tracking Issue
As a premium user, you are entitled to some support from your re-seller or from Google.
That said, have you checked out Google's guide on single page applications? See the warning about updating the referrer (in case you folks are doing that.)
Also you may want to consider using the history change listener and passing in changes in state as a virtual pageview. It could help you construct funnels, etc.
More on that here from the man on the topic, Simo Ahava: