You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to be able to control when the "nuxtRoute" event is triggered by the module. There are times in which I would like it to be triggered earlier than other events that I send to the datalayer, so two questions here:
Is there a specific lifecycle hook in the pages/components that the "nuxtRoute" is triggered at? (i.e: asyncdata, mounted, other). If so, which one is it?
Can I manually trigger the "nuxtRoute" the same way the module already does? When I inspect the Google Tag Manager and see this event I see that it automatically adds some information to it dataLayer.push({ routeName: "home___es", pageType: "PageView", pageUrl: "/?gtm_debug=x", pageTitle: "Whatever", event: "nuxtRoute", gtm.uniqueEventId: 4103 })
But if I try to manually send the event like $gtm.push('nuxtRoute')
I don't see the same amount of information, GTM just receives "nuxtRoute" with no other data
Thanks in advance!
The text was updated successfully, but these errors were encountered:
I would like to be able to control when the "nuxtRoute" event is triggered by the module. There are times in which I would like it to be triggered earlier than other events that I send to the datalayer, so two questions here:
dataLayer.push({ routeName: "home___es", pageType: "PageView", pageUrl: "/?gtm_debug=x", pageTitle: "Whatever", event: "nuxtRoute", gtm.uniqueEventId: 4103 })
But if I try to manually send the event like
$gtm.push('nuxtRoute')
I don't see the same amount of information, GTM just receives "nuxtRoute" with no other data
Thanks in advance!
The text was updated successfully, but these errors were encountered: