Skip to the content
Start free

Referral spam

Referral spam is fake traffic that shows up in your analytics reports as if another website had sent you visitors. It usually exists to make you curious enough to visit the spammer’s site. The rows look like real referrers, but nobody real came. The fix starts with proof: compare the report with your server logs before you trust, filter or click anything.

What is a referral? #

A referral is a visit that arrives from a link on another website. Browsers pass the address they came from in the Referer request header. MDN defines it as the header that “contains the absolute or partial address from which a resource has been requested”. The spelling is a historical mistake for “referrer”. In Google Analytics 4 (GA4), a session lands in the Referral channel when its medium is “referral”, “app” or “link”, following Google’s default channel rules.

How does referral spam get into reports? #

There are two routes. Some spam comes from scripts or scripted browsers that load your page with a made-up referrer, so your Google tag fires and counts them. Other rows never touch your site at all. They are sent straight to Analytics. Google’s Measurement Protocol, which lets a server send events, needs a private API secret. Google warns that exposing it “allows unauthorized parties to send arbitrary or spam data” to your property. Either way, the report shows visitors your server never served.

Spam rows make your reports wrong. Visit counts look higher, and the list of referring sites fills with names that sent nobody real. A small site can then judge a page, a landing page or a campaign on false numbers. Google counts a session as engaged if it lasts longer than 10 seconds, has a key event or has 2 or more page views. Spam sessions rarely do any of that, so they drag down your engagement rate and push up your bounce rate. And a spam referrer is not a link to your site. It tells you nothing about your backlinks, your link profile or your referring domains.

Why does it matter for AI answers? #

More and more real referrals come from AI tools. GA4 has an AI Assistant channel: the medium “ai-assistant”, set when the referrer matches a list of AI assistant sites. Those visits are people an AI assistant sent you, and they are worth watching. Junk rows make that signal harder to read. They also tempt you to “clean up” with rules that hide real ChatGPT referral traffic by mistake. Keep the spam check separate from your AI check. See ChatGPT traffic in Google Analytics.

What does GA4 remove by itself? #

Google Analytics automatically excludes traffic from known bots and spiders. Google says they are identified “using a combination of Google research and the International Spiders and Bots List”, which the IAB maintains. Two limits matter. You cannot switch this off. And you cannot see how much it removed. Spam that is not on those lists, or that is sent straight to Analytics, can still be counted. The wider topic is bot traffic in analytics.

Is “List unwanted referrals” a spam filter? #

No. GA4’s unwanted referrals setting is built for owners who need one measurement across more than one domain, such as a separate basket or payment domain. You can set up to 50 per data stream. A matching event gets ignore_referrer=true, which tells Analytics the referrer “should not be displayed as a traffic source”. Google does not say the visits are removed, so the sessions can still be counted. Only the source label changes.

What about data filters? #

GA4 data filters come in three kinds: developer traffic, internal traffic and web hostname traffic. Google is clear that “the effect on the data is permanent”, and that filters “do not affect historical data”. Internal traffic rules match IP addresses or ranges, and a filter can sit in a Testing state first. In Testing, matching data is only labelled, not removed. That helps with your own office. It rarely helps with spam sent straight to Analytics, because those rows did not come from an address you can name.

A worked example #

A law firm’s Traffic acquisition report shows a new referrer, free-seo-boost.example / referral, with dozens of sessions in a week. There is almost no engagement time and no enquiries. The firm’s server logs for the same week show no requests with that referrer at all. Real visitors from a real site leave a trace in the logs; these did not, so the rows were most likely sent straight to Analytics. The firm notes the dates, leaves the address unvisited and judges that week’s figures without that row.

Sign Real referral Likely referral spam
Server or CDN log Requests with that referrer on the same days No matching requests at all
Engagement Some engaged sessions Almost none engaged
Landing page The page the link points to The home page, or a page that does not exist
The referring site Has a page that links to you A name that sells something, often SEO or traffic
Enquiries or orders Sometimes Never

Common mistakes #

  • Using “List unwanted referrals” as a spam filter. It changes the source label. It does not say the visits are removed.
  • Visiting the spam address to find out what it is. That is the click the spammer wanted. Look the name up instead.
  • Placing the Measurement Protocol API secret in page code, where anyone who views source can copy it. Google says it is private and must not sit in client-side code.
  • Adding a permanent exclude filter in a hurry. It works forward only and loses any real visits it catches.
  • Adding spam domains to a disavow file. A spam referrer is not a link. The disavow tool is about links, so it does not touch analytics rows. Spam is also not the same as negative SEO.
  • Trusting a bot name. Anyone can send any user agent. Check addresses against the company’s published list.

How to check it #

  1. In GA4, open Reports, then Acquisition, then Traffic acquisition, and look at the session source. Note any unknown referrers with very short sessions and their dates.
  2. Do not visit the address. Read its parts with the URL parser, look up who owns the name with the WHOIS lookup, and see whether it imitates a real brand with the lookalike domain checker.
  3. Compare with your server or CDN logs for the same days. Drop a log file into the AI Crawler Log Analyser, which reads it in your browser. A referrer that never appears there probably never really visited. In URSY Pro, opening in stages, the log file analyser shows every bot on every page. See log file analysis.
  4. If the log does show the requests, look at the IP address and network block. Check any bot name with Verify an AI Bot, which compares the address with the company’s published list. A reverse DNS bot check does the same job by hand.
  5. See every tag and pixel your page loads with the Tracking Checker, and what it sets before consent with the Cookie Checker. A tag that fires twice looks like extra visitors too.
  6. In Admin, under Data streams, check that no Measurement Protocol API secret sits in your site’s page code. A browser’s view source shows what your pages contain. If one does, create a new secret and delete the old one.
  7. Read your response headers with the HTTP Header Checker. It shows what your server sends, including cache status, so you know whether a request reached your origin server or was answered by the edge cache.
  8. Tag your own campaigns with the UTM builder, so real referrals from your emails and posts are clear. See UTM parameters.
  9. Check the same days in Google Search Console. If Google clicks stay flat while “referral” sessions jump, the extra sessions did not come from search. See Search Console vs Analytics.
  10. Only then decide on a filter. For a known address range, use an internal-traffic rule in Testing first. For rows with no trace in your logs, read the reports with a comparison that leaves them out.
  11. For the long view, URSY Pro, opening in stages, has Sources (search, AI, social, links, direct), AI referrals (people sent by ChatGPT, Perplexity, Gemini, Copilot) and measurement integrity (did every paid order reach your tracking?).

What URSY.com counts #

We count a page view only when a person’s browser loads a page and runs our cookie-free counter. Every request is also read from the edge log, cache hits included, and a request seen in both places is counted once by its request ID. So a “visit” that never reached the website leaves no row with us. Where an AI tool sent a person, we record the observed referrer, but many AI apps send none, so that figure is a minimum. Query strings are never stored. The rules are on our methodology page, and cookie-free analytics is in URSY Pro, opening in stages.

Questions #

Can referral spam harm my Google rankings? #

A spam row in your analytics is not a link to your site, so it does not change your backlinks. The harm we can point to is to your decisions: you judge pages and campaigns on false numbers.

How can spam appear when the spammer never visited? #

Some rows are sent straight to Analytics. Google warns that an exposed Measurement Protocol API secret lets others send spam data to your property. Your server logs are the test: no request, no visit.

Does GA4 block referral spam automatically? #

It excludes known bots and spiders from Google’s research and the IAB list. You cannot see how much it removed, and new spam can slip through.

Should I filter it out? #

Only once you know what it is. Data filters are permanent and forward-only. Test first, and for rows with no trace in your logs, use a comparison instead.

Is it safe to visit the referring site to see what it is? #

No. That click is what the spammer wants. Look up the name with a WHOIS or lookalike check instead.

Sources #

Updated 24 November 2026 by URSY.com.

Cite this page: Referral spam. URSY. Updated 26 November 2026. https://ursy.com/wiki/referral-spam/ · Section links

Tools for this

All 871 wiki entries, A to Z →