9 Easy Steps to Track Fragment URLs in Universal Analytics with Google Tag Manager
Ah, fragment URLs – you know these URLs with a hashtag (such as www.example.com/categoryA.html#filter1=abc&page=2), that can’t be tracked with Google Analytics…
Indeed Google Aanalytics strips out everything after the hashtag. Yet seeing what’s after the hashtag can be useful to know what are the most popular filtering options for example or to check if your visitors go beyond the first page of your product listing.
With Google Tag Manager, tracking these URLs as virtual pageviews becomes relatively easy. No need to be a developer or adding any codes on your web pages.
Here is how to do it.