Closed BernhardSchlegel closed 4 years ago
translates to this
this.$gtag.event('conversion', {
'send_to': 'AW-424270545/dwgaH7KkocA6EJHh7MAC',
'event_callback': callback
});
and if you already have gtag enabled you should install the plugin like so
Vue.use(VueGtag, {
config: { id: "UA-1234567-1" },
disableScriptLoad: true
});
Thanks, mate! Figured it out yesterday and saw my first conversion today. Confirmed :)
For the ones following, I added a separate, additional gtag config for Google Ads
mounted() {
this.$gtag.config('AW-424270545');
},
Where did you set the code for the event_callback
callback
value ? Because Adwords give me this :
<script>
function gtag_report_conversion(url) {
var callback = function () {
if (typeof(url) != 'undefined') {
window.location = url;
}
};
gtag('event', 'conversion', {
'send_to': 'XXXX',
'event_callback': callback
});
return false;
}
</script>
Description
I want to emit an Google Ads conversion event. Google generated the following code:
How does that translate to
I already initialized gtag with my global (Google Ads) gtag.
Thanks in advance!