Fixing unknown referrals in Google Analytics or what it is called Log Spam, Referrer spam or Referrer Bombing…

While checking my site statistics in Google Analytics in the “Traffic Sources” >> “All Traffic sources” tab I’ve found some suspicious domain names as the referral of my site… such as

  • / referral
  • / referral
  • / referral
referral spam shown as red mark
referral spam shown as red mark

  • what is a Referrer Spam?
    After a quick check, it became obvious that none of the sites actually don’t have any actual referring links to my site but the things might call Log Spam, Referrer spam or Referrer Bombing. From Google Analytics forum,

    It is a method of attracting direct visits from a webmasters, faking traffic for a paid-for-inclusion-directories or annoy webmasters by posting fake message or fake keywords. Also old public stats programs like Webaliser or AWStats showed a backlink to the faked referrer which had SEO benefits for the spammer. (Note: GA is defaulted to private, so referrers are not publicly posted, as far as I am aware).

    But be known that spam referrals will NOT affect the site’s search engine positions (SERPs), these 2 issues are COMPLETELY unrelated.

  • How the spammers do it?
    The spammers can collect the GA accountID
    s (e.g UA-0000000-1) in a number of ways and then can paste these accountID found above into GA tracking code hosted on their domains e.g. and then can send traffic to these internal pages. It happens as any webpage that has the tracking code of your Analytics account installed on it will be tracked by your Analytics account. This is irrespective of whether it is your domain or not. The only way to stop tracking the page would be to remove the code from it by contacting with the site owner.
  • How to check whether you are affected by this:
    1. Go to “visitors tab” >> “network properties” > “hostnames” and look for or any unknown domains, e.g. If you see sites listed within hostnames are something like
    thebesthosting .org / gps-brasil.blogspot .com / notebooks-brasil.blogspot .com / www.web .com

    The list hostnames shows the unknown domains calling my GA Id
    The list hostnames shows the unknown domains calling my GA Id
  • 2. Search for allintext:UA-0000000 or “UA-0000000” on google (you can even setup a google alert to be notified if google finds a site your accountID) – To check for if anyone using your exact GA Id –

    3. Do a “Site Search” in the suspected site. e.g. do a site search on to find the page with your accountID.

  • How to Fix this:
    Add an include Hostname filter for to prevent faked visits from thebesthosting .org and others.

    Filter Type:
    Advanced > INCLUDE
    case sensitive: no

    Include filter by hostname
    Include filter by hostname

    IMPORTANT: it is best to have a backup profile with no filters applied. Thus if you accidentally clicked the “exclude” button rather than “include” or mistyped you domain name, then no traffic would be included, so be careful with filters using the hostname field.

    * google cache, MSN translate visits will also be shown in the hostname report. This is because when a user views the cache of your page, the tracking code still runs, but this is hosted on google servers not your hostname.



  • What is a website profile in Google Analytics
  • Leave a reply:

    Your email address will not be published.

    Sliding Sidebar

    About Me

    MurshedVi Die hard coder, Unix server admin, Open source enthusiast, Localization guru, PHP expert, Apache-Solr ecosystem expert, Web geek. The wounded coder, determined not to stop before killing all bugs!! The samurai, bug hunter willing to create a bug free world for all humans!! Great Team player (always watch & cover the back of others). Extra Patience (to dig the root of every single bugs). Ultra Passionate (caring about the products I built). Perfectionist, Proactive, Collaborative, Good listener, Observer, Thinker, thoughtful to serve the better, best, awesome user experience for all netizens. Do you have a tech challenge? Drop a mail to

    Oops! It looks like you haven't imported any lists yet. You must import at least one list to use the Easy MailChimp widget.