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

We recently discovered a few new referrer spam websites that takes things a little far. and are two of them. is a referrer spam URL that is basically used to scam webmasters into embedding unnecessary spam links into their websites. If your Google Analytics reports show that your website is receiving an unusual amount of referral traffic it means that your Google Analytics account is being targeted by a spammer.

If you visit in your browser you will be presented with a very deceptive webpage designed to scam you into thinking that your website does not comply with the European Union Cookie Law. However, this is not true. The page claims that “European laws require that digital publishers give visitors to their sites and apps information about their use of cookies and other forms of local storage.” The page contains a green “Recommended Solution” button and if you click it you will be directed to The landing page contains a fraudulent “official free solution to the European Union Cookie Law.” The page claim that webmasters must copy and paste a code before the </body> tag on your website.

Do not copy and paste this link into your website. It is a spam code that can eventually affect your website’s rank in Google Search results. It is not recommended to embed links like this into your website’s files.

Although referral 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 webpage that says ” This domain belongs to a crawler that searches for websites that do not comply with the European Union Cookie Law. European laws require that digital publishers give visitors to their sites and apps information about their use of cookies and other forms of local storage. These laws also require that consent be obtained.”

The webpage threatens a fine and provides a green recommended solution button. If you click the button you will be directed to The webpage contains a script that they want victims to embed into the body of their webpages.

If you are affected by do not embed this script into your website. This is a referrer spam URL that is trying to deceive you and nothing more. It is recommended to block referral spam in Google Analytics by creating an exclude filter.

How to create an exclude filter

1. Open your Google Analytics account and go to the Admin tab. Click Filters 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

WHOIS information for could not be provided. The WHOIS record for the associated domain name has been recovered and listed below.

Domain ID: D188667657-LROR
WHOIS Server:
Referral URL:
Updated Date: 2016-05-16T15:53:29Z
Creation Date: 2016-05-16T15:48:18Z
Registry Expiry Date: 2017-05-16T15:48:18Z
Sponsoring Registrar: Moniker Online Services LLC
Sponsoring Registrar IANA ID: 228
Domain Status: serverTransferProhibited
Registrant ID: MWP13480421200
Registrant Name: Moniker Privacy Services
Registrant Organization: Moniker Privacy Services
Registrant Street: 2320 NE 9th St
Registrant Street: Second Floor
Registrant City: Fort Lauderdale
Registrant State/Province: FL
Registrant Postal Code: 33304
Registrant Country: US
Registrant Phone: +1.8006886311
Registrant Phone Ext:
Registrant Fax: +1.9545859186
Registrant Fax Ext:
Registrant Email:
Admin ID: MTP13715800319
Admin Name: Moniker Privacy Services
Admin Organization: Moniker Privacy Services
Admin Street: 2320 NE 9th St
Admin Street: Second Floor
Admin City: Fort Lauderdale
Admin State/Province: FL
Admin Postal Code: 33304
Admin Country: US
Admin Phone: +1.8006886311
Admin Phone Ext:
Admin Fax: +1.9545859186
Admin Fax Ext:
Admin Email:
Tech ID: MAP14144407310
Tech Name: Moniker Privacy Services
Tech Organization: Moniker Privacy Services
Tech Street: 2320 NE 9th St
Tech Street: Second Floor
Tech City: Fort Lauderdale
Tech State/Province: FL
Tech Postal Code: 33304
Tech Country: US
Tech Phone: +1.8006886311
Tech Phone Ext:
Tech Fax: +1.9545859186
Tech Fax Ext:
Tech Email:
DNSSEC: unsigned

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

Sean Doyle

Sean Doyle is a tech author and engineer with over 20 years of experience in cybersecurity, privacy, malware, Google Analytics, online marketing, and other topics. Sean's content has been featured in numerous publications.

2 Responses

  1. Anonymous says:

    Trying this as well. Thanks for the info.

  2. Anonymous says:

    Thank you for this. Tried it out today. Lets see how it goes.

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.