From http://www.dcpagesapps.com/developer-resources/web-development/26-adwords-conversion-on-click-event
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Google Code for Contact Page Conversion Page --> | |
<script type="text/javascript"> | |
/* <![CDATA[ */ | |
var google_conversion_id = XXXXXXXXXXXX; | |
var google_conversion_language = "en"; | |
var google_conversion_format = "3"; | |
var google_conversion_color = "ffffff"; | |
var google_conversion_label = " XXXXXXXXXXXX"; | |
var google_conversion_value = 0; | |
/* ]]> */ | |
</script> | |
<script type="text/javascript" src="http://www.googleadservices.com/pagead/conversion.js"> | |
</script> | |
<noscript> | |
<div style="display:inline;"> | |
<img height="1" width="1" style="border-style:none;" alt="" src="http://www.googleadservices.com/pagead/conversion/XXXXXXXXXXXX/?label=XXXXXXXXXXXX&amp;guid=ON&amp;script=0"/> | |
</div> | |
</noscript> | |
var image = new Image(1,1); | |
image.src = "http://www.googleadservices.com/pagead/conversion/XXXXXXXX/?label=XXXXXXXX&amp;guid=ON&amp;script=0"; | |
$(document).ready( function() { | |
$("#emailLink").click( function() { | |
$(this).parent().append('<div style="display:inline;"><img height="1" width="1" style="border-style:none;" alt=" src="http://www.googleadservices.com/pagead/conversion/XXXXXXXX/?value=0&amp;label=XXXXXXXX&amp;guid=ON&amp;script=0"/></div>'); | |
_gaq.push(['_trackPageview','/email']); | |
}); | |
}); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment