Tracking Feedburner Form Submissions in Google Analytics

shabbir's Avatar author of Tracking Feedburner Form Submissions in Google Analytics
This is an article on Tracking Feedburner Form Submissions in Google Analytics in JavaScript and AJAX.
Rated 5.00 By 1 users
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.



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.



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.