public
Last active

Google Conversion Tracking With KickoffLabs

  • Download Gist
adwords.html
HTML
1 2 3 4 5 6 7 8 9
<script>
$(document).ready(function(){
$("#signup_form").bind("kol:success", function(e, data, status, xhr) {
$div = $('<div style="display:inline;">');
$div.append('<img height="1" width="1" style="border-style:none;" alt="" src="http://www.googleadservices.com/pagead/conversion/992175653/?value=20&amp;label=J_1oCKunogMQpcyN2QM&amp;guid=ON&amp;script=0"/>');
$div.appendTo('body');
});
});
</script>
analytics.html
HTML
1 2 3 4 5 6 7
<script>
$(document).ready(function(){
$("#signup_form").bind("kol:success", function(e, data, status, xhr) {
pageTracker._trackPageview("/subscribed");
});
});
</script>
async_analytics.html
HTML
1 2 3 4 5 6 7
<script>
$(document).ready(function(){
$("#signup_form").bind("kol:success", function(e, data, status, xhr) {
_gaq.push(['_trackPageview', '/subscribed']);
});
});
</script>

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.