Last active
December 15, 2022 11:42
-
-
Save johnnyopao/a267fa9cefac6f5a50d1 to your computer and use it in GitHub Desktop.
Trigger Adwords Click Conversion (Placement: Before body end tag)
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
// 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