Hi,

I've got a page that I would like to count how many times a each button or hyper-link was clicked,

Basically it's what "google in-page analytics" dos'nt succeed to do in my site.

1. Is there a script that does it?

2. What is the best way to store the results?

3. How can I sort by date.

Thanks.

Could you not do something similar to when a user clicks the page an alert pops up.

replace the code where the popup occurs and just +1 to a counter.

If you wanted to store this data i spose there are 2 ways, one count all the clicks then when a user navigates away from the page make a call to the server to store the count into a database.

Or

Perform an ajax call each time a user clicks something, could be very heavy on your server though.

example code would be something like this i assume

$('#link_id').click(function(){
count = count + 1;
});

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.