NuxtN
Nuxt16mo ago
RicharDVD

Multiple pixels using Nuxt Scripts

We are currently working with a external marketing team that asks from us to also setup their google tag (and meta) tag on our website.
I currently have something like this in the app.vue file:

useScriptGoogleAnalytics({
  key: 'gtag1',
  id: 'G-0987654321',
})
useScriptGoogleAnalytics({
  key: 'gtag2',
  id: 'G-1234567890',
})


I can see that they are both installed and I can send custom events to either one of these but the automatic pageview event is only send to one gtag id.
I would however like to automatically send the pageview events to both tags. How can I achieve this? Thanks in advance!
Was this page helpful?