jquery - Tracking goals on AJAX calls in Google Analytics -


on website goal want track attached ajax call rather specific url. there anyway track in google analytics?

note: using jquery.

the solution can think of @ moment having tiny iframe somewhere on page , loading goal url frame. however, doesn't sound clean , mess pageviews.

have taken @ google analytics event tracking? i've used before ajax based comments success.

on page use similar following track url in google analytics:

<input type='button' onclick="javascript:pagetracker._trackpageview('/goal/comment.html') /> 

Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

aspxgridview - Devexpress grid - header filter does not work if column is initially hidden -

c# - How to execute a particular part of code asynchronously in a class -