Skip to content

Instantly share code, notes, and snippets.

@johnnyopao
Last active December 15, 2022 11:42
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save johnnyopao/a267fa9cefac6f5a50d1 to your computer and use it in GitHub Desktop.
Save johnnyopao/a267fa9cefac6f5a50d1 to your computer and use it in GitHub Desktop.
Trigger Adwords Click Conversion (Placement: Before body end tag)
// This also requires a adwords onhandler conversion script.
// See the section on 'Tracking clicks on links or buttons as conversions' in the article below
// on how to obtain that script
// https://support.google.com/adwords/answer/6095821?hl=en
<script>
$( "#lp-pom-button-15" ).click(function(event) {
event.preventDefault();
goog_report_conversion(this.href);
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment