3 ms·
Very nice! On several projects, we've had success with a custom tracker that records IP, URL, referrer, display resolution, OS, and user agent to a local db.
by nathan-io 7y ago
Very nice!
On several projects, we've had success with a custom tracker that records IP, URL, referrer, display resolution, OS, and user agent to a local db.
To filter out bot traffic, we used Crawler-Detect [1].
The whole thing is just a few lines of PHP and JS, doesn't even require a tracking pixel (we grab most of the data from the user session).
A cron job moves entries older than x from the production db to an archive db.
[1] https://github.com/JayBizzle/Crawler-Detect https://github.com/JayBizzle/Crawler-Detect