: Can google analytics track # (URL fragment) in url? In one of my url, www.mycompany.com/accounts, I show different content based on the hash. e.g. www.mycompany.com/accounts#profile shows user
In one of my url, mycompany.com/accounts, I show different content based on the hash. e.g. mycompany.com/accounts#profile shows user profile and mycompany.com/accounts#subscription shows the current subscription of the current user. It is implemented with Backbone.
When I search for mycompany.com/accounts#profile, I yield nothing. I am pretty sure this url is accessed by different users every day.
Is it a limitation of google analytics? If so, how can I track this sort of behaviour?
More posts by @Martha676
1 Comments
Sorted by latest first Latest Oldest Best
The term you're looking for is URL fragment, i.e. anything after the # symbol.
Google Analytics does not track it by default, from what I understand, although I can't find actual GA documentation confirming this.
In Google Analytics, fragment changes are not tracked by default, and the URL paths that are passed to GA with your Pageview hits are stripped of these fragments. With Google Tag Manager, this can be remedied with a History Change Trigger and some Variable magic.
Thus, mycompany.com/accounts#profile is tracked as mycompany.com/accounts and hits aggregated with the same URLs with different fragments.
The link above has some useful tips as to how to get fragment tracking working.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.