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

The in-page view in Google Analytics shows the website in an IFrame and overlays the statistics of link clicks. How is this done to track and show clicks (or entered data) for textbox ( elements)?

share|improve this question

In order to track the use of the textbox you need to add event tracking. You can find a detailed guide here: http://code.google.com/apis/analytics/docs/tracking/eventTrackerGuide.html.

For example, I got this snippet of code:

onchange="pageTracker._trackEvent('Coupons', this.form.action, this.value);" 

from here: https://groups.google.com/a/googleproductforums.com/forum/#!category-topic/analytics/discuss-google-analytics-features-with-other-users/eLw4H2WsMDA.

Once you've set that up you can see clicks, but you can't see entered data via the overlay. To do that you'll have to look at the event reports.

share|improve this answer
If you are using the async tracking it's: _gaq.push(['_trackEvent', 'Coupons', this.form.action, this.value]);"> – jen Jan 20 '12 at 20:30

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.