Mobile app version of vmapp.org
Login or Join
Ann8826881

: How does GA show an URL with a hashtag? I have a website where an URL-scheme like www.domain.com/#user=1 does get used. This scenario is happening for 2 months now and we have some views each

@Ann8826881

Posted in: #GoogleAnalytics

I have a website where an URL-scheme like domain.com/#user=1 does get used. This scenario is happening for 2 months now and we have some views each day (enough to track them). If we now check in Google Analytics we see none of these pages listed although we have verified >50 views per page/ day.

We have no filters set at all. GA is installed with gtag.js. And on another project I have exactly that scheme that gets tracked correctly although we have way less views there per page



What am I missing there?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Ann8826881

1 Comments

Sorted by latest first Latest Oldest Best

 

@Lengel546

Google Analytics does not track the hashtag (URL fragment) by default.

You can update the data before sending it to Analytics (track pageviews).

gtag('config', 'GA_TRACKING_ID', {
'page_path': location.pathname + location.hash
});


Or you can use Google Tag Manager.

The data you are showing with the URL fragment on Analytics must have one of them implemented. Also check AllowAnchor in case it's being used on this view.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme