I’m looking to track clicking on a site, mostly using jQuery to fire click events on anchors and buttons that add/update a cookie that I’ll log into internal databases when a user hits an error page
This would mean adding some jQuery logic on the master page (that is on every page) that will get and update the cookie, along with hooking up jquery click events to most objects on the site.
the site sees roughly around 100K unique visitors a day and is heavy on database calls already
This is the first time I’ve incorporated anything like this into a site of this size. I’d like to know if any experts have concerns over doing something like this, what kind of performance overhead I can expect to cause with this solution, any ideas for implementation that would make this as non-noticeable as possible to the user and server loads, etc.
I appreciate any guidance anyone can give.
To log something in cookies is not very good idea as the cookie have limitation of text length (4KB if i haven’t forgotten). So if you would like to log some user activity you may try to use ajax to send request to the server and try to apply some logging system with high performance at the server side.