This is actually a follow up question on my original postRe: Google Conversion Tracking On a Button
I've added the AdWords Global site tag (gtag.js) as a page top rule - Sequential HTML(single snippet for both DBM and AdWords as per this). And then added the AdWords event snippet onto a button as non-sequential JS. Now when I click on the button I can't seem to find the event snippet firing - could you help please?
Notes
Regards,
Vipin
Ignore this question, it's sorted.
Just for everyone's reference, it worked when I added only the gtag part of the event snippet as non-sequential JS
gtag('event', 'conversion', {
'send_to': 'AW-XXXXXXX/abcdefghijk',
});
whereas the entire event snippet is:
<script>
function gtag_report_conversion(url) {
var callback = function () {
if (typeof(url) != 'undefined') {
window.location = url;
}
};
gtag('event', 'conversion', {
'send_to': 'AW-XXXXXXX/abcdefghijk',
'event_callback': callback
});
return false;
}
</script>
Did you already have the universal analytics tool set up, or did you not need that? Also, how did you QA it on the front-end to make sure it was firing?
Views
Replies
Total Likes