For all you Piwik users out there, there may have come a moment where you thought to yourself, “Is there bad traffic affecting my site?” Maybe you had this thought because an unusual spike in traffic occurred or something else out of the ordinary showed up in your Piwik dashboard.
Does Piwik really block all the spam/robots?
While the most popular bots won’t get through Piwik’s shield, it doesn’t mean that less popular or newer robots couldn’t slip through. So as a precaution if you know of specific instances of bad traffic, exclude traffic from a certain IP or range of IPs. Go to Settings > Websites
While you can exclude traffic from IP address in Piwik, you cannot remove specific traffic with a certain domain or range of domains. The only other sections you can filter traffic from your Settings are by URL parameters and by user agent. Both query URL parameters and user agents can be left blank, as there’s no benefit to add anything to these sections. Neither will track spam coming to the site, only users on your site (such as eCommerce members and non-members) and specific pages in your Page URLs reports (such as your blog entries).
So the IP address exclusion list usually does the trick in removing bad traffic from Piwik. But if you see a few spam entries still passing through, there is another solutions out there that you can try.
Alter your noscript tag under “Image Tracking Link” with Adrian Speyer’s amazing solution found here.
Say goodbye to bad traffic, and hello to real results
Now that you have fixed your traffic issue in Piwik, it’s time to analyze your data. For more tips and tricks on Piwik, head over to our Piwik web analytics guides section. Or if you’re having the same robots and spam traffic issues in Google Analytics, check out our related post on fixing bad traffic in Google Analytics (TBA).