Created
August 29, 2018 23:24
-
-
Save sneg55/3542cba4fd3b831617e9e939e784b480 to your computer and use it in GitHub Desktop.
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
<!-- Event snippet for sent conversion page | |
In your html page, add the snippet and call gtag_report_conversion when someone clicks on the chosen link or button. --> | |
<script> | |
function gtag_report_conversion(url) { | |
var callback = function () { | |
if (typeof(url) != 'undefined') { | |
window.location = url; | |
} | |
}; | |
gtag('event', 'conversion', { | |
'send_to': 'AW-794594304/3fsOCKS-pIgBEICY8voC', | |
'transaction_id': '', | |
'event_callback': callback | |
}); | |
return false; | |
} | |
</script> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment