Google AdWords Conversion Tracking with AJAX form
ajax, google-analytics, javascript
Solution
Use an IFRAME to call an HTML file with the conversion tracking code on it.
http://www.benjaminkim.com/?p=24
Problem
I have a google adwords conversion tracking code that I need to implement basically on an onclick event. The form I am tracking submits information using AJAX and then renders a Thank you message to the page by replacing the form's div with the thank you HTML ( $('div').html("thank you....., etc"); ) I'm wondering if there's a way to a) trigger a conversion track when the SUBMIT button is clicked, or b) if I include the google script to be posted to the site in the html() function that writes to a div, will that track the conversion? or c) Any other thoughts on doing this? I've searched a bit on this but haven't had much luck.... Thanks!