<!-- Event snippet for Compra 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-669759270/ZKt6CIjykewcEKburr8C',
'transaction_id': '',
'event_callback': callback
// 'new_customer': true /* calculate dynamically, populate with true/false */,
});
return false;
}
</script>