Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

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
add comment

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.

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
add comment

Your Answer

 
discard

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.