I’m working on a web app with EE and Safecracker and one of the things I have is a list of links that my users have created for their favorite websites in the form of a grid. What I’d like to do is when they click on one of the links (taking them away from the site). Before they leave, I want to record somewhere that they clicked that specific link and +1 it’s value (and the date they clicked it). So what would happen is that they would get a “heat map” of sorts where their most frequented links would get hot and the less frequented links would cool down. And over time if a hot link isn’t visited in a while it starts to cool down.
The thing is, if the link is serving to take them away from the site. How can I quickly record the click on that link before they leave. It’d have to be a super quick javascript of some sort - and very reliable. Right now I’m using safecracker to write to EE, but I worry that doing an AJAX write to EE with safecracker before the link click is activated would take too long? Just wondering if anybody has any ideas.
Thanks!