Ask HN: Why do sites do tracking on the client side?
It is a common pattern to send user behavior data from the client (web&#x2F;app) to the 3rd party trackers. This attempt can be blocked by the client, e.g. by browser extension or DNS filtering (like pihole or nextdns).<p>Why don&#x27;t the websites track users from the server instead? Because it&#x27;s &quot;eaasier&quot; for the site owner to just drop-in the google analytic&#x2F;whatever 3rd tracker script in the head, then setting up the server to proxy the submission?<p>I may understand why the sites don&#x27;t do analytics on their own (because it&#x27;s easier to just hand to the 3rd party provider, and the site owner may not be programmer at all). However I don&#x27;t see why they prefer to do the tracking from the client side.