How to stop Google Analytics "Ghost" Spam using a well curated list of spam referrer domains and web sites. Simple and easy to use with visual instructions for creating Segments in Google Analytics using my google-exclude files.
- Created by: https://github.com/mitchellkrogza
- Copyright Mitchell Krog [email protected]
Spam in Google Analytics (GA) is becoming a serious issue. Due to a deluge of referral spam from social buttons, adult sites, and many, many other sources, people are starting to become overwhelmed by all the filters they are setting up to manage the useless data they are receiving. Referrer spam produces corrupt analytics data and on many sites a good 70% of what you may be seeing as hits to your sites are actually spam referral traffic.
They are called ghosts because they never access your site. As unusual as it sounds, this type of spam doesn't have any interaction with your site at all. You may wonder how that is possible since one of the main purposes of GA is to track visits to our sites. They do it by using the Measurement Protocol, which allows people to send data directly to Google Analytics' servers. Using this method, and probably randomly generated tracking codes (UA-XXXXX-1) as well, the spammers leave a "visit" with fake data, without even knowing who they are hitting.
Follow the simple step by step visual instructions below to add these google-exclude files as segments to your web site.
The referrer domains contained in this repository comes from over a year's worth of curation from my Nginx Referrer Spam and Bot Blocker and Apache Referrer Spam and Bot Blocker Projects. These lists are carefully moderated and curated and also constantly updated.
- Check Out The Amazing
- Nissar Chababy - https://github.com/funilrys/funceble (Excellent script for checking ACTIVE, INACTIVE and EXPIRED Domain Names)
- https://github.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker
- https://github.com/mitchellkrogza/apache-ultimate-bad-bot-blocker
- https://github.com/mitchellkrogza/Badd-Boyz-Hosts
- https://github.com/mitchellkrogza/Stop.Google.Analytics.Ghost.Spam.HOWTO
- https://github.com/mitchellkrogza/fail2ban-useful-scripts
- https://github.com/mitchellkrogza/linux-server-administration-scripts
- https://github.com/mitchellkrogza/Travis-CI-Nginx-for-Testing-Nginx-Configuration
- https://github.com/mitchellkrogza/Travis-CI-for-Apache-For-Testing-Apache-and-PHP-Configurations
- https://github.com/mitchellkrogza/Fail2Ban-Blacklist-JAIL-for-Repeat-Offenders-with-Perma-Extended-Banning
- https://github.com/funilrys/funceble
- https://github.com/funilrys/dead-hosts
if you ever need help with implementing this or with any other web site related queries. I can help you secure your site, stop it getting hit by bad bots and referrer spam and implement many security solutions on all distributions of Linux. I am for hire and I support clients worldwide.
Come drop by and visit me at https://mitchellkrog.com or