3 ms·
Good point. What would be a good way to avoid prefetch requests in your analytics if you only derive analytics from server access logs?
by hombre_fatal 8y ago
Good point.
What would be a good way to avoid prefetch requests in your analytics if you only derive analytics from server access logs?
- 8bitben 8y agoMost browsers pass a "purpose:prefetch" or similar HTTP header in the prefetch request that you can use to differentiate
- hueving 8y agoThen how do you know when they actually go to the page? Do you need client side analytics at that point since the browser already has the page in memory?
- Drakim 8y agoYou could obviously do it with JavaScript by pinging the server to tell him that log entry X is to be promoted to a true "hit". For a non-JS solution, I guess an tiny iframe at the bottom of the html page that accesses a special server page with an unique stamp that causes the same "hit". the iframe loading would mean that the rest of the page is mostly loaded before it was closed.