Skip to content

Instantly share code, notes, and snippets.

@scottwater
Created October 6, 2011 13:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save scottwater/1267415 to your computer and use it in GitHub Desktop.
Save scottwater/1267415 to your computer and use it in GitHub Desktop.
Google Conversion Tracking With KickoffLabs
<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>
<script>
$(document).ready(function(){
$("#signup_form").bind("kol:success", function(e, data, status, xhr) {
pageTracker._trackPageview("/subscribed");
});
});
</script>
<script>
$(document).ready(function(){
$("#signup_form").bind("kol:success", function(e, data, status, xhr) {
_gaq.push(['_trackPageview', '/subscribed']);
});
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment