Go4Expert

Go4Expert (http://www.go4expert.com/)
-   JavaScript and AJAX (http://www.go4expert.com/articles/javascript-tutorials/)
-   -   Tracking Feedburner Form Submissions in Google Analytics (http://www.go4expert.com/articles/tracking-feedburner-form-submissions-t28160/)

shabbir 10Apr2012 11:32

Tracking Feedburner Form Submissions in Google Analytics
 
Feedburner statistics are not part of Google Analytics and I couldn't understand why but you can track Feedburner Email Subscription Form Submission in Google Analytics Very easily.

Activate Email Subscription for your Feed in Feedburner and grab the HTML code of your subscription form. The HTML code should look like this.

http://imgs.g4estatic.com/feedburner...urner-code.jpg

Now insert the onclick handler code for submit button to track form submissions in Google Analytics. The onclick event handler code is

HTML Code:

onclick="javascript:_gaq.push(['_trackPageview','/formsubmission/feedburner']);"
So

HTML Code:

<input type="submit" value="Subscribe" />
Becomes

HTML Code:

<input type="submit" value="Subscribe" onclick="javascript:_gaq.push(['_trackPageview','/formsubmission/feedburner']);" />
Tracking works with the latest code of Google Analytics and you can see the tracking in action for my blog in the screenshot below.

http://imgs.g4estatic.com/feedburner...-Analytics.png

If you have multiple forms on a page and want to track submissions of each of them separately you can either change the tracking string like

HTML Code:

onclick="javascript:_gaq.push(['_trackPageview','/formsubmission/feedburner-sidebar']);"
or like
HTML Code:

onclick="javascript:_gaq.push(['_trackPageview','/formsubmission/feedburner/sidebar']);"
HTML Code:

onclick="javascript:_gaq.push(['_trackPageview','/formsubmission/feedburner/afterpost']);"
If you have any queries or questions, do share them in comments below.


All times are GMT +5.5. The time now is 03:29.