I think that:
- Client side analytics are not helpful (and may make invalid assumptions).
- Client side analytics waste energy, bandwidth, RAM, etc.
- You should avoid other wastes too, such as including too many pictures, CSS, scripts, animations, etc.
- Client side analytics wrongly violate privacy.
- In the case of client-side JavaScript errors, yes in that case it may be helpful (sometimes), but it should ideally ask first. Errors should also be displayed in the console window, so that the user can diagnose the errors by themself.
- A web page should be designed to work without JavaScripts and without CSS as much as possible, although sometimes they are helpful (although a better "user oriented" design should be needed rather than the "author oriented" design; I have some ideas about how to do this).
- Don't always use web pages! There is such thing also as Telnet, SSH, Gopher, NNTP, plain text files (over whatever protocol), etc. (I use many plain text files myself, actually.)
- Let the user to write a comment (by email, perhaps). Otherwise, you will just have to guess, and might not be able to. Even if you use client side analytics, it cannot guess something that isn't there.
So, I use server side analytics instead, is much better.
(In the case of traffic jams: You can see how many cars they are; you do not need to add a device on each car to count them, nor to read license numbers, etc. A simple light sensors to see if the light is blocked by cars, would be good to have.)
(In the case of stores, well they already need to count how many products have been purchased, as they very well should. They need not track who purchased each item, just to keep track of how many of each item has been sold. That will allow them to restock and to bring in enough for everyone, and whatever else they need to do. They can keep track of returns too.)