A site I manage is getting a lot of referral traffic from a 3rd party site. The 3rd party site is linking to our site like this: example.com/page#123abc. The 3rd party site is using noreferrer with the link and they won't add a UTM parameter to the link.

Accordingly the traffic from this 3rd party site is showing up in Google Analytics as Direct traffic and is hard to track.

The #123abc part of the URL is unique to this 3rd party site is constant, ie. it doesn't change.

Is there a way in Google Analytics I can track, tag or filter any incoming traffic that lands on page example.com/page#123abc so that I can better review it in the same I way I would be able to review it if it was showing the referrer info or had a UTM parameter appended?

We are using Google Analytics Universal tracking.

  • Are you using Google Analytics Universal or GA4? Oct 6, 2022 at 16:18
  • @StephenOstermiller Google Analytics Universal
    – sam
    Oct 6, 2022 at 17:03

3 Answers 3


Go to Google Analytics and select Reports.
Select new custom report and select Flat table.
Add filter "Landing Page" and enter the unique part of the url.
Save the report and choose the date to show the required result.


Thinking about this some more one thing that could be done would be to write a 301 redirect from example.com/page#123abc to example.com/page#123abc?utm_source=tracking.

But it feels a bit of clunky way to resolve the issue.


As per Google documentation, you can override the UTM parameters in GA4. (I understand you'll need to migrate your setup first, since you said you are still on Universal Analytics):


An example code would be:

gtag('set', {
    'campaign_id': 'google_1234',
    'campaign_name': 'Summer_fun',
    'campaign_source': 'google',
    'campaign_medium': 'cpc',
    'campaign_term': 'summer+travel',
    'campaign_content': 'logolink',

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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