Over the last few weeks I have seen a lot of 00:00:00 sessions come from spamming servers. I want a way to not only block them in Analytics but also in cPanel if possible.
If anyone knows the best way to remove all spamming hostnames please share.
Over the last few weeks I have seen a lot of 00:00:00 sessions come from spamming servers. I want a way to not only block them in Analytics but also in cPanel if possible.
If anyone knows the best way to remove all spamming hostnames please share.
Blocking Spam Traffic From within Google Analytics
You can use a combination of 2 filters to stop all the spam in google analytics:
As an extra you can enable the built-in feature “Exclude all hits from known bots and spiders“, this option will exclude all the traffic from bots/crawlers that are not spam but they aren’t human visits either.
You can read more here http://www.ohow.co/what-is-referrer-spam-how-stop-it-guide/
Blocking Spam Traffic From cPanel
You can use IP Deny Manager within cPanel to block spam referrals.
You can read more here http://geekflare.com/block-spam-referral-traffic-to-your-website-through-cpanel/
This my sound a bit too easy but you could just delay the call of
ga('send', 'pageview') //May look different due to different Goggle Analytics Code
for like 50ms-1s. This will only record those users who stay at least 50ms-1s. I don't know what will be the best time setting but this seems to be the easy way to do it.