Google Ads button call
-
I have the following code
<!– Event snippet for Purchase 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-XXXXXXXXXXXXXXXXXXXXXXXXXXXXX’,
‘value’: 1.0,
‘currency’: ‘ARS’,
‘transaction_id’: ”,
‘event_callback’: callback
});
return false;
}
</script>How can I call the function gtag_report_conversion when someone clicks on the chosen button?
Thanks in advance
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Google Ads button call’ is closed to new replies.