1. This website uses cookies to improve service and provide a tailored user experience. By using this site, you agree to this use. See our Cookie Policy.
    Dismiss Notice

Stopping referral spam in Google Analytics

Discussion in 'White Hat SEO' started by catonkeyboard, Jul 6, 2015.

  1. catonkeyboard

    catonkeyboard Regular Member

    Dec 7, 2011
    Likes Received:
    Referral spam has been pissing me off, making my bounce rate high. This a guide that I followed that helped me to removed this spam, which may help you if you are having the same problem. Most of the Referrer Spam never access your site so you can't block them using .htaccess rules. They hit directly Google Analytics. Ghost Referrer Spam normally shows up only for a few days and then disappear, that's why some people think they blocked them from the .htaccess file, but is just coincidence. This type of Spam is easy to spot since they don't use a valid hostname, they'll use either a fake hostname or not set. [​IMG] The other type, Crawlers like semalt, actually access your site and can be blocked from the .htaccess file, however, there are just a few of them. In SUMMARY, to stop referrer spam:
    • Crawlers: From the .htaccess file or filters
    • Ghosts: Only filters
    To add a filter:
    • Go to the admin tab in Google Analytics
    • Select FILTER under the View Column > New Filter
    • Filter type Custom > Exclude
    • Field Campaign source
    • File Pattern Box Copy the Referrer you want to filter
    You can add multiple referrals in the same filter like this darodar\.com|econom\.co|iloveitaly\.co A more advanced solution to prevent being hit from ghost spam, is by making an include filter with all your valid hostnames. First you need to make a REGEX with all your hostnames, something like this: yoursite\.com|shoppingcart\.com|translateservice\.net These are examples, you might have more or less hostnames. Once you have the REGEX, follow the same steps as above and change this:
    • Field Hostname
    • File Pattern Box Include > Hostname > Paste the REGEX in the Filter Pattern box.
    It's always recommended to keep a view without filters to compare later. Here is a complete article about Spam on Google Analytics with detailed guides for this and other solutions. What is Referrer Spam and How to Stop it Hope it helps.
    • Thanks Thanks x 2
  2. swti6690

    swti6690 Newbie

    Jul 13, 2015
    Likes Received:
    By accumulation campaign parameters to your URLs, you can recognize the movement that throws traffic to your site. When a user clicks a recommendation link, these parameters are launch to Google Analytics, so you can observe the usefulness of every campaign in your information.