Skip to content

Instantly share code, notes, and snippets.

@morcegon
Created August 16, 2023 12:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save morcegon/ca45ea171eca6a86393c12d8e08535b7 to your computer and use it in GitHub Desktop.
Save morcegon/ca45ea171eca6a86393c12d8e08535b7 to your computer and use it in GitHub Desktop.
Tag Instituto VS
<!-- 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>
<!-- 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