How to remove referral spam from Google Analytics reports?

Issue: I have a suspect that my GA reports have been polluted by spam because referrer keeps showing on the list. I’ve tried to access the website to check what it’s about, but web browser was redirected to another domain. After that, I’ve performed a small research on this URL and found clues that it’s a newly released referral spam, so I decided to ask your help to block it. Would highly appreciate your help, guys!

Solved Answer

Nowadays the reliability of Google Analytics reports is a heated question ‘thanks’ to the Vitaly Popov and its invention of Ghost Traffic. A couple of years ago, security specialists and Google Analytics experts noticed strange referral domains showing up in the list of referrers, for example,,,,, and many others. These sources attract the attention of a GA user as they usually feature a high visitor’s rate even though the website is non-affiliated with a Google Analytics user’s site, which is the reason why GA user may decide to check the URL. That’s the trick that spammers have invented to increase traffic to doubtful domains and, therefore, earn an easy profit. referral spam and its predecessors are those domains in question and are sometimes considered to be malicious as they may even be exploited for malware distribution. However, the main goal of is to generate traffic and increase the rank in Google search results using unfair techniques. referral spam may also be referred to as Ghost traffic. It means that all indicators shown on its behalf are fictitious. The referrer gets injected into the GA reports with the help of fake hits, which are generated by a program or a bot. It means that no human beings were accessing your website via URL because the hits have been channeled directly to Google Analytics. To make this trick, spammers or hackers, it’s up to you how to call, just need to know your Google Analytics property ID to inject fake referrals into the reports. fake referral distorts actual GA statistics, which is a minor harm if compared to the fact that referral spam may be linked to infected websites. Therefore, it’s crucial to ensure Google Analytics by NOT disclosing property ID publicly. If, however, you are receiving reports about spam, take needed actions and block it right away.

How to block referral spam in Google Analytics reports?

Step 1. Change Filter Pattern

  1. Select Admin -> All Filters. Later on, enter New Filter and type in the Filter Name box.
  2. Choose Custom Filter Type, then choose Campaign Source from the drop-down Filter Field menu.
  3. Lastly, in the Filter Pattern field, type and click Save.

Step 2. Change HTTP settings

  1. Sign into cPanel account, navigate to File Manager section and click on the checkbox called Document Root for -> your website.
  2. Click on Show Hidden Files and then Go. Once you locate the .htacess file, right-click on it and select Code Edit. Enter the following text ant click Save Changes.

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

Step 3. Modify Language filter

  1. In your Analytics account, navigate to Admin Tab.
  2. Click VIEW, select Filters and then click +Add Filter.
  3. In the Filter Name box, type: Language Spam.
  4. In the Filter Pattern box, type in: \s[^\s]*\s|.{15,}|\.|,
  5. Click on Verify this Filter and save the changes.

Optimize your system and make it work more efficiently

Optimize your system now! If you don't want to inspect your computer manually and struggle with trying to find issues that are slowing it down, you can use optimization software listed below. All these solutions have been tested by team to be sure that they help improve the system. To optimize your computer with only one click, select one of these tools:

do it now!
computer optimizer Happiness
do it now!
computer optimizer Happiness
Compatible with Microsoft Windows Compatible with OS X
Your problem remained?
If you are not satisfied with FortectMac Washing Machine X9 and think that it failed to improve your computer, feel free to contact us! Please, give us all details related to your issue.
Fortect - a patented specialized Windows repair program. It will diagnose your damaged PC. It will scan all System Files, DLLs and Registry Keys that have been damaged by security threats.Mac Washing Machine X9 - a patented specialized Mac OS X repair program. It will diagnose your damaged computer. It will scan all System Files and Registry Keys that have been damaged by security threats.
This patented repair process uses a database of 25 million components that can replace any damaged or missing file on user's computer.
To repair damaged system, you have to purchase the licensed version of Fortect malware removal tool.To repair damaged system, you have to purchase the licensed version of Mac Washing Machine X9 malware removal tool.

Prevent websites, ISP, and other parties from tracking you

To stay completely anonymous and prevent the ISP and the government from spying on you, you should employ Private Internet Access VPN. It will allow you to connect to the internet while being completely anonymous by encrypting all information, prevent trackers, ads, as well as malicious content. Most importantly, you will stop the illegal surveillance activities that NSA and other governmental institutions are performing behind your back.


Recover your lost files quickly

Unforeseen circumstances can happen at any time while using the computer: it can turn off due to a power cut, a Blue Screen of Death (BSoD) can occur, or random Windows updates can the machine when you went away for a few minutes. As a result, your schoolwork, important documents, and other data might be lost. To recover lost files, you can use Data Recovery Pro – it searches through copies of files that are still available on your hard drive and retrieves them quickly.


About the author
Ugnius Kiguolis
Ugnius Kiguolis - The problem solver

Ugnius Kiguolis is the founder and editor-in-chief of UGetFix. He is a professional security specialist and malware analyst who has been working in IT industry for over 20 years.

Contact Ugnius Kiguolis
About the company Esolutions

What you can add more about the problem: "How to remove referral spam from Google Analytics reports?"