Created
August 16, 2023 12:11
-
-
Save morcegon/ca45ea171eca6a86393c12d8e08535b7 to your computer and use it in GitHub Desktop.
Tag Instituto VS
This file contains hidden or 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 Whatsapp 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-11073122237/9xoSCOC9hdMYEL3fiaAp', | |
'event_callback': callback | |
}); | |
return false; | |
} | |
</script> |
This file contains hidden or 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 tag (gtag.js) --> | |
<script async src="https://www.googletagmanager.com/gtag/js?id=AW-11073122237"></script> | |
<script> | |
window.dataLayer = window.dataLayer || []; | |
function gtag(){dataLayer.push(arguments);} | |
gtag('js', new Date()); | |
gtag('config', 'AW-11073122237'); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment