Webmasters Stack Exchange is a question and answer site for pro webmasters. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Can I track the click of every link, button, dropdown select, etc. on a screen and have it be tracked in Google Analytics?

I want to create a page and collect data on which widget the users use most.

What about AJAX stuff? What if you're using jQuery or Mootools...can you get the functions to register a fake URL with GA based on user interaction? I use to do this with Flash. Everytime you click a button, it can initiate a fake URL request. I would make urls such as ".../customize/eyes/" or ".../customize/nose", etc. Just wondering if I can do that with Javascript on the page.

I've also posted at StackOverflow.

share|improve this question

There are a number of ways to do that. To begin with Google already tracks each click you make on a link on a page. In Google Analytics go to Content>Site Overlay

  1. Use the Function PageView for Google Analytics http://code.google.com/apis/analytics/docs/tracking/asyncUsageGuide.html. This can be somewhat poor
  2. Tools like CrazyEgg track specifically where each click occurs on the page, even within the link itself. The only major downsides are that it costs money and that it has some issues with AJAX enabled code and correctly marking where someone has clicked.
share|improve this answer
+1 for crazyegg. – Yahel Oct 8 '10 at 2:58
There are even tools for usability testing that track all mouse movements. These are generally paid services, but they record mouse movements of visitors and then let you play them back to see how people are using your site. – Lèse majesté Oct 8 '10 at 4:38

I have personally used Crazy Egg and I have heard good things about Clicktale for heatmaps and usability testing. I would recommend checking both of them out.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.