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)?

1 Answer 1


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.

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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