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 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

that's how it should work

What am I missing there?

up vote 3 down vote accepted

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.

Your Answer


By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.