Replies: 1 comment
-
Actually, since v1.2.0, yes! If you want to send data to multiple destinations, you can add more than one Google tag ID to your Nuxt configuration in the The following example shows how to load a second Google tag that is connected to a Floodlight destination. To send data to Floodlight (tag ID // `nuxt.config.ts`
export default defineNuxtConfig({
modules: ['nuxt-gtag'],
gtag: {
tags: [
'GT-XXXXXXXXXX', // Google Ads and GA4
'DC-ZZZZZZZZZZ' // Floodlight
]
}
}) Or use the object syntax to initialize multiple tags with different configurations: // `nuxt.config.ts`
export default defineNuxtConfig({
modules: ['nuxt-gtag'],
gtag: {
tags: [
{
id: 'GT-XXXXXXXXXX',
config: {
page_title: 'GA4'
}
},
{
id: 'DC-ZZZZZZZZZZ',
config: {
page_title: 'Floodlight'
}
}
]
}
}) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is there a way to add additional ids or accounts? like in google-gtag?
Beta Was this translation helpful? Give feedback.
All reactions