Hi there!
I switched to server-side tracking on a couple of sites, and while I was happy to see more data coming in without being blocked client-side, there is another issue: bots.
Two examples:
GA4 says ~500 users last month – Pirsch tracked around 4–5k.
Matomo reports ~100 users in the last 14days (400 page views) – Pirsch tracked almost 1000 (2000 page views).
So it is roughly 10 times higher.
This was mostly without any further filtering before sending data to Pirsch. I did, however, greatly improve my tracking setup and filtering, and the numbers went down quite noticeably. Still, it is way more than expected, judging by Pirsch’s data, a lot of bot traffic still, especially Singapore, Brazil, and the US, and far too many macOS users (German craftsmen don’t use macs that often
).
What I have done so far (with Pirsch’s built-in bot filter enabled): filtering bot/crawler/headless UA, Accept/Sec-Fetch/sec-CH-UA consistency checks, prefetch/AJAX/non-GET exclusions, static paths, per-IP/UA rate limiting (max 5/60sec), and a global cold-hit burst guard.
What seems to slip through are slow, single requests from rotating proxy IPs sending complete, valid macOS Chrome headers (Direct/None).
I can’t put the site behind Cloudflare, I want to keep it pure server-side (no JS), and I don’t want to block entire countries right now.
Any tips on how to improve?