How to block referral spam in Google Analytics

Block referral spam in Google Analytics

This webpage contains a guide that shows you how to block referral spam (referrer spam) in Google Analytics by creating an exclude filter. referral is a referrer spam URL similar to that is used to fill-up your Google Analytics reports with fraudulent web data. If you notice referrals in Google Analytics it means that your account is being targeted by a referrer spammer associated with the advertising network. It should be noted that this type of web traffic does not mean that someone from was actually referred to your website. referral traffic does not actually land on your website. It is a type of web traffic known as referrer spam.

Although referrer spam is not harmful to your website and will not affect your rank in Google Search Results Pages, it can ruin the data collected in your Google Analytics reports. For example, referrals will appear to land on a single webpage on your website and leave from the same website, which will create a 100% bounce rate. If your website is targeted by referrer spammers you may not be able to identify your website’s bounce rate. The same can be said about other data measured in most Google Analytics reports.

Why is spamming my website?

The reason why is spamming your website’s Google Analytics account is to get your attention and provoke you to visit the URL in your web browser. If you visit the URL you will be redirected to a website that asks for your email address. The landing page claims to contain information about the “best monetization for your website.” If you submit your email address you will be redirected to google analytics

We do not recommend websites that engage in referrer spam. Referrer spam is a blackhat SEO tactic that completely disregards your website’s data in order to desperately and recklessly promote online content.

How to create an exclude filter

1. Open your Google Analytics account and go to the Admin tab. Click Filters in the VIEW section on the right side of the webpage.

2. Click the + ADD FILTER button to create a new filter.

3. Add or something else that you can remember as the Filter Name. If you plan to add more spam URLs to the list you can name the list something like “Referrer Spam Filter.”

4. Select the Custom Filter Type from the two options.

5. In Filter Field Field select Campaign Source.

6. In the Filter Pattern box, add and click the blue Save button on the bottom of the webpage. To add multiple URLs to the same filter you can make a Filter Pattern similar to this with a | between each URL: | | WHOIS information

Registry Domain ID: 2016530002_DOMAIN_NET-VRSN
Registrar WHOIS Server:
Registrar URL:
Updated Date: 2016-03-28T11:50:45Z
Creation Date: 2016-03-28T11:50:44Z
Registrar Registration Expiration Date: 2017-03-28T11:50:44Z
Registrar: DomainContext, Inc.
Registrar IANA ID: 1111
Domain Status: clientTransferProhibited
Registry Registrant ID: 
Registrant Name: Greck Marlo
Registrant Organization: N/A
Registrant Street: Lolo str15   
Registrant City: Signax
Registrant State/Province: 
Registrant Postal Code: 94210
Registrant Country: SG
Registrant Phone: +7.4953834970
Registrant Phone Ext: 
Registrant Fax: 
Registrant Fax Ext: 
Registrant Email: 
Registry Admin ID: 
Admin Name: Greck Marlo
Admin Organization: N/A
Admin Street: Lolo str15  
Admin City: Signax
Admin State/Province: 
Admin Postal Code: 94210
Admin Country: SG
Admin Phone: +7.4953834970
Admin Phone Ext: 
Admin Fax: 
Admin Fax Ext: 
Admin Email: 
Registry Tech ID: 
Tech Name: Greck Marlo
Tech Organization: N/A
Tech Street: Lolo str15  
Tech City: Signax
Tech State/Province: 
Tech Postal Code: 94210
Tech Country: SG
Tech Phone: +7.4953834970
Tech Phone Ext: 
Tech Fax: 
Tech Fax Ext: 
Tech Email: 
Name Server:
Name Server:
Registrar Abuse Contact Email: 
Registrar Abuse Contact Phone: +7 495 6459373
URL of the ICANN WHOIS Data Problem Reporting System:

Also See: How to exclude all hits from known bots and spiders in Google Analytics (Bot Filtering)

  • htaccess

    saw on another site how to block via htaccess but i am not familiar with this syntax so just posting for others to review/comment

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