How To Remove Referral Spam

  • event-tracking referral spam referral spam may hit your Google Analytics account a few times and then disappear for a while after that. It’s not too interesting when compared to other referrer spam, so I’m just going to skip straight to the guide.

How To Block Spam: Filter Method

The easiest way (and the way I always filter out this type of referrer spam) to filter out referrer traffic is to simply follow the instructions below:

1. Log Into Your Google Analytics Account

Google Analytics Login Screen


2. Go To Your “Admin” Tab

Google Analytics Admin Tab


3. Click On “Filters” Under The “View” Section

Google Analytics Filters



4. Click On “+New Filter”

Google Analytics Add New Filter

5. Enter The Information In The Image Below And Save

event-tracking referral spam

How To Block Spam: Htaccess Method

In every article I’ve written about ghost referrer spam, I never recommend using this method or the following method if the referrer spam is indeed ghost referrer spam that never actually visits your site.

RewriteCond %{HTTP_REFERER} [NC,OR] RewriteRule .* – [F]

How To Block Spam: Deflecting Method

This is not a recommended method, but you can create a text file called “” and add the following code to it:

##referer –> redirect target

After that, you’re going to want to add the following code to your .htaccess

RewriteMap deflector txt:/path/to/
RewriteCond %{HTTP_REFERER} !=””
RewriteCond ${deflector:%{HTTP_REFERER}} =-
RewriteRule ^ %{HTTP_REFERER} [R,L]

Why Does Event-Tracking Referrer Spam Occur?

The only goal I could assume that, a website that is really just filled with ads and information about event tracking codes, has with their referral spam is to get people to visit the site and click on one of the many Adsense ads.

Alistair Kavalt