ZenWeb - Blog - Referral Spam in GA4? How to Block Fake Traffic Fast

Referral Spam in GA4? How to Block Fake Traffic Fast

July 27, 2026

Share this post:

Referral Spam in GA4? How to Block Fake Traffic Fast
TL;DR: GA4 referral spam is junk traffic logged under fake or unwanted referral sources. Most of it is low-volume noise — GA4 already blocks known bots automatically. To clean the rest, confirm it is spam by checking the hostname and engagement, add the culprits to your unwanted-referrals list, and filter your reports by your own hostname. New sessions clear in a day or two.

You open GA4, check where your visitors come from, and a domain you have never heard of is sitting in your referral list. Or a payment page you use for checkout is being credited for sales it never earned. That is referral spam — and it makes your reports look busier and dirtier than they really are.

The good news for Malaysian business owners: referral spam in GA4 is usually a small, fixable problem, not lost data. This guide explains what it is, how to spot it, and how the team at ZenWeb clears it across 500+ client accounts — without deleting a single real visit.

We will define referral spam, show why it quietly costs you money, map the tell-tale signs, and walk the fix step by step — all part of keeping your digital marketing reporting trustworthy. The short video below is a useful primer before we start.

What Are Unwanted Referrals in GA4? How to Manage & Block Them

Source video: MeasureSchool on YouTube


1. Introduction

Referral spam has a long history in Google Analytics. In the old Universal Analytics days, spammers flooded reports with fake referrers to bait clicks. GA4 resists this far better, but junk referrals still slip through.

The relief is that this is rarely lost data. Your real visits are still counted; a few junk sessions have simply been filed under a source that is not genuine. Below we cover what referral spam means in GA4, why it matters, how to recognise it, and how to block it for good.


2. What Is Referral Spam in GA4?

Quick Answer: Referral spam in GA4 is any session logged under a fake or unwanted referral source. It covers bots that leave a junk referrer, “ghost” hits sent straight to your property, and legitimate-but-unhelpful referrals like payment gateways. It inflates your numbers and hides where real visitors actually came from.

“Referral” in GA4 simply means a visit that arrived from another website. Referral spam is when that source is fake, automated, or something you never wanted counted as a referral in the first place. It comes in three broad flavours:

  • Crawler spam. A real bot crawls your site and leaves a spammy referrer in the data.
  • Ghost spam. Fake hits sent directly to your GA4 property that never actually visit your site.
  • Unwanted referrals. Genuine traffic that bounced through a payment gateway or your own subdomain — not spam exactly, but noise you do not want as a “source”.

GA4 handles a lot of this for you. It automatically blocks traffic from known bots, which is the same first line of defence covered in our guide to filtering bot traffic out of your GA4 reports. What is left over is what this guide fixes.

Key takeaway: Referral spam is any fake or unwanted source in your reports. GA4 blocks known bots on its own; your job is to catch the ghost hits and unwanted referrals it does not.

3. Why Referral Spam Skews Your Decisions

Quick Answer: GA4 referral spam inflates sessions with visits that never buy, drags down engagement and conversion rates, and steals credit from the channels that actually work. For any business spending on ads, that means judging real campaigns against numbers polluted by fake traffic.

The harm is rarely the spam line itself — it is what the spam does to every metric around it. Three problems show up again and again:

  • Your totals look bigger than they are. Extra junk sessions make traffic look healthy while real performance stays flat.
  • Engagement and conversion rates fall. Spam sessions convert at zero, so they quietly drag down every rate you report on.
  • Real channels lose credit. When a payment gateway is logged as the referrer, the ad or search that earned the sale gets nothing.

That last point is the expensive one. If your numbers are dirty, you cannot trust them to decide where the next ringgit of budget goes — the same trap that makes a spike in direct traffic so misleading.

Key takeaway: Spam is not just an ugly line in a report — it inflates totals, sinks your rates, and hands credit to the wrong source, so real budget decisions get made on bad numbers.

Not sure your GA4 numbers can be trusted?

A quick professional check confirms your traffic sources are clean before you judge any campaign on them. See how our digital marketing team sets up clean tracking →


4. What Referral Spam Looks Like in Your Reports

Quick Answer: Across ZenWeb client accounts, the most common junk referrals are crawler bots that slip past the auto-filter and unwanted payment-gateway referrals — together more than half of all cases. True ghost spam is rarer in GA4 than it was in Universal Analytics, because fake hits now need your API secret to land.

The chart below shows how junk-referral cases break down across the Malaysian accounts our team has diagnosed. Notice how much is not really “spam” — just real traffic mislabelled as a referral.

Junk Referrals in GA4 — Share of Cases by Type
Share of GA4 junk-referral cases by type, from ZenWeb client diagnostic cases in Malaysia, 2024 to 2026.
Type of junk referralShare of cases
Crawler bots that slip past the auto-filter

34%

Unwanted payment-gateway referrals (iPay88, Billplz, Stripe, PayPal)

28%

Ghost hits with a hostname that is not yours

18%

Spammy event, language, or campaign strings

12%

Own subdomain or staging self-referrals

8%

Source: ZenWeb client diagnostic cases, Malaysia, 2024–2026.

The pattern is clear: the top two rows — stray crawlers and payment-gateway referrals — make up most of what Malaysian SMEs actually see. Both are fixed with settings, not a rebuild. Payment-gateway noise in particular overlaps with self-referrals that skew your data, and both use the same unwanted-referrals fix.

Key takeaway: Most junk referrals Malaysian businesses see are stray crawlers and payment-gateway sources — over 60% of cases. Both are cleared with a setting, not a redesign.

5. Ghost Spam, Crawler Spam and Unwanted Referrals

Quick Answer: The three types of referral spam reach GA4 in different ways, so they need different fixes. Ghost spam never visits your site; crawler spam does; unwanted referrals are real visitors passing through a third party. Knowing which one you have tells you exactly which lever to pull.

Lumping all junk referrals together is why so many clean-up attempts fail. The table below separates them by how they arrive, how to recognise them, and whether GA4 already blocks them for you.

Three Types of Referral Spam, Side by Side
Ghost spam, crawler spam, and unwanted referrals in GA4 compared by how they reach the property, their tell-tale sign, and whether GA4 blocks them automatically.
TypeHow it reaches GA4Tell-tale signGA4 auto-blocks it?
Ghost spamFake hits sent straight to your property; never visits the siteHostname is not your domainMostly — needs your API secret, so rare in GA4
Crawler spamA real bot crawls your site and leaves a fake referrerOdd source domain, near-zero engagementKnown bots yes; unknown crawlers no
Unwanted referralsReal visitors return via a payment page or your own subdomainReferral from a gateway or your own domainNo — you add them to the unwanted list

Source: ZenWeb, compiled from Google Analytics documentation and client cases, 2024–2026.

GA4’s built-in defence does the heavy lifting on known bots. Google confirms that traffic from known bots and spiders is excluded automatically using the IAB/ABC International Spiders and Bots List — always on, no setting to toggle. That leaves ghost hits and unwanted referrals as the parts you handle yourself.

Key takeaway: Ghost spam, crawler spam, and unwanted referrals are three different problems. Match the type to its fix instead of treating every junk referral the same way.

6. The Tell-Tale Signs of Referral Spam

Quick Answer: You can spot referral spam by its fingerprints — a source domain you do not recognise, sessions with near-zero engagement, or a hostname that is not your website. The single best check is the hostname: if a referral shows a hostname that is not your domain, it never touched your site and is ghost spam.

Before you block anything, confirm it is really spam. The table below maps each warning sign to what it usually means and how to check it inside GA4.

Warning Sign → Likely Meaning → How to Confirm
GA4 referral-spam warning signs matched to their likely meaning and how to confirm each one inside GA4, from ZenWeb diagnostic cases in Malaysia.
What you seeWhat it usually meansHow to confirm
A referral from a domain you have never heard ofCrawler or ghost spamAdd the Hostname dimension; if it is not yours, it is a ghost
A spike of sessions with near-zero engagement timeAutomated bot trafficCheck average engagement time for that source
Sessions from a country you do not serveScraper or data-centre trafficSegment by country and compare to real buyers
A “referral” from your own domainSelf-referral or cross-subdomain gapCheck whether the source is your own subdomain
A “referral” from a checkout or payment pageUnwanted referral, not spamTrace the user path back to your checkout

Source: ZenWeb diagnostic framework, Malaysia, 2024–2026.

When a whole source shows no data on your key pages instead of odd data, the cause is usually tracking, not spam — start with why GA4 shows no data before you reach for a filter.

Key takeaway: Referral spam has clear fingerprints — an unknown domain, dead engagement, or a wrong hostname. Confirm the sign before blocking, so you never filter out a real visitor.

Reports full of sources you cannot explain?

We audit your GA4 setup, separate the spam from the real traffic, and lock in filters that keep it clean. Get a clean-tracking audit from our team →


7. How to Block Referral Spam in GA4

Quick Answer: Block referral spam in a set order: confirm it is spam, trust GA4’s built-in bot filter, add the culprits to your unwanted-referrals list, exclude your own IPs, protect your API secret, then build a clean hostname-filtered view. Test each change before moving to the next.

Work the steps in order and check after each one. Most sites only need the first three.

How to block referral spam in GA4

Follow these seven steps, confirming the change before you move on.

  1. Confirm it is really spam. Add Hostname as a secondary dimension and check engagement time. If the hostname is not yours, or engagement is near zero, it is spam — not a real visitor to filter out by mistake.
  2. Trust the built-in bot filter. GA4 already excludes known bots and spiders automatically, so you rarely need to touch crawler traffic that identifies itself.
  3. List your unwanted referrals. In Admin → Data Streams → Configure tag settings → Show all → List unwanted referrals, add payment gateways and spam domains so GA4 stops counting them as sources.
  4. Exclude your own team. Define internal traffic and add a data filter so staff visits from your office IP do not muddy the numbers.
  5. Protect your Measurement ID. Ghost hits via the Measurement Protocol need your API secret, so keep it private and rotate it if it ever leaks.
  6. Build a clean view. Create an exploration filtered to Hostname equals your own domain, so any ghost hits with a wrong hostname drop out of your analysis.
  7. Re-check after a day or two. Only new sessions are corrected, so judge success on fresh data, not on yesterday’s reports.

Keep a simple record of every domain you exclude, so your reasoning is clear months later and the same spam does not creep back in unnoticed.

Key takeaway: Confirm, trust the bot filter, list unwanted referrals, then filter by hostname. Those four moves clear almost all referral spam in GA4.

8. Where and When Your Clean-Up Shows Up

Quick Answer: Check the right place for the right speed. DebugView and Realtime confirm within minutes that your settings work; standard reports take 24 to 48 hours to settle. The unwanted-referrals list is not retroactive, so past spam stays recorded — use a segment to hide it in old data.

The most common mistake after a clean-up is expecting yesterday’s reports to change. They will not — the fix applies going forward, as the table below shows.

Where and When a Referral-Spam Fix Shows Up
Where to confirm a GA4 referral-spam fix, what each view proves, and the typical delay, modeled from ZenWeb client cases in Malaysia.
Where you checkWhat it provesTypical delay
DebugViewA test hit now has its referrer ignoredSeconds
Realtime reportLive sessions stop showing the blocked sourceUp to ~30 minutes
Traffic acquisition reportReferral share settles as clean sessions land24–48 hours
Historical dataOld spam stays as it was recordedNot retroactive — use a segment

Source: Modeled from ZenWeb client cases, Malaysia, 2024–2026.

That 24-to-48-hour wait for standard reports is normal, in line with Google’s data-freshness guidance. If a blocked source still appears in fresh data after two days, the domain match is probably too narrow — widen it and test again.

Key takeaway: DebugView and Realtime confirm a referral-spam fix fast; standard reports take a day or two. Past spam stays recorded, so judge success on new data and use a segment for old reports.

9. Fix It Yourself, or Get Help?

Quick Answer: Adding a payment gateway to your unwanted-referrals list is safe to do yourself. Get help when spam keeps returning, when ghost hits point to a leaked API secret, or when the reports feed ad budgets that depend on the numbers being right.

You do not need an agency for every junk referral. Use this rough line to decide:

  • Fix it yourself when the cause is an unwanted referral — add the payment gateway or subdomain to the list and watch the source settle within a couple of days.
  • Get help when spam keeps coming back, ghost hits suggest your Measurement ID is exposed, or the same data drives campaigns you spend real money on.

A wrong guess here is quietly costly. While your data is dirty, every channel decision rests on numbers that credit the wrong source — the same blind spot that makes a sudden ranking drop hard to diagnose. Getting the setup clean once pays for itself, and our digital marketing team audits and locks down GA4 tracking as standard.

Key takeaway: Handle unwanted referrals yourself. Bring in help when spam keeps returning, a leaked API secret is likely, or your ad spend depends on clean data.

10. Conclusion

Referral spam in GA4 looks alarming but rarely means broken tracking. Your real visits are still counted; a handful of fake or unwanted sessions have simply been filed under a source that is not genuine. Read the fingerprint, name the type, then apply the fix it calls for.

Confirm it is spam, lean on GA4’s built-in bot filter, list your unwanted referrals, and filter your reporting by hostname. Test in DebugView, wait a day or two for reports to settle, and judge the result on new data. If spam keeps returning or your campaigns depend on the numbers, the team at ZenWeb can get your tracking clean and keep it that way.


11. Frequently Asked Questions

1. What is referral spam in GA4?

Referral spam in GA4 is any session logged under a fake or unwanted referral source. It includes bots that leave a junk referrer, ghost hits sent straight to your property that never visit your site, and real traffic passing through a payment gateway. It inflates your totals and hides where genuine visitors actually came from.

2. Does GA4 block referral spam automatically?

Partly. GA4 automatically excludes traffic from known bots and spiders using the IAB/ABC International Spiders and Bots List, and this cannot be switched off. But it does not catch every unknown crawler, ghost hit, or unwanted referral. Those you handle yourself with the unwanted-referrals list and a hostname filter.

3. How do I stop spam referrals in GA4?

Go to Admin, Data Streams, Configure tag settings, Show all, then List unwanted referrals, and add the spam or gateway domains you want ignored. GA4 then stops counting them as sources for new sessions. For ghost hits, build an exploration filtered to your own hostname so wrong-hostname traffic drops out of analysis.

4. Why is spam still showing after I added unwanted referrals?

Two reasons. First, the list is not retroactive, so historical data keeps the old spam — only new sessions are cleaned. Second, your domain match may be too narrow. Widen the match type or add the exact domain, then re-check fresh data after 24 to 48 hours as reports settle.

5. Can I delete referral spam from past GA4 reports?

No. GA4 does not let you delete or rewrite historical data the way Universal Analytics view filters seemed to. Past spam stays recorded. To read clean historical numbers, build a segment or comparison that excludes the spam source or filters to your own hostname, and use that view for reporting.

Spam making your GA4 reports impossible to trust?

Book a free 30-minute session — we’ll check your sources, block the spam, exclude the gateways, and get every referral in GA4 crediting the channel that earned it.

Get my free tracking check →

Table of Contents

Table of Contents

See Also

Cross-Domain Tracking Broken? How to Fix Split Sessions

Cross-Domain Tracking Broken? How to Fix Split Sessions

UTM Links Not Working in GA4? How to Track Campaigns

UTM Links Not Working in GA4? How to Track Campaigns

Form Submissions Not Showing as Conversions? Fix It Now

Form Submissions Not Showing as Conversions? Fix It Now

Get A Free Proposal

Complete the form and our team will contact you to discuss your goals. Let’s grow your business.

Meowketing Specialist

Online

Today

Meow! 👋

We are Official Google Partner,
Ask us anything about Marketing!