Integration with Partytown #25
-
First of all, thank you for your effort! The Problem: Ways to solve: useHead({
script: [
{
src: `https://www.googletagmanager.com/gtag/js?id=${id}`,
[strategy]: true,
...type // type: 'text/partytown'
},
],
}) Or maybe you have other thoughts on how we can proceed with this, would be very useful. Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Sure, you can use Partytown. Actually, I'd recommend that approach over this module. For the Partytown implementation, you don't even need useHead({
script: [
{
src: `https://www.googletagmanager.com/gtag/js?id=${process.env.NUXT_PUBLIC_GTAG_ID}`,
type: 'text/partytown'
},
],
}) |
Beta Was this translation helpful? Give feedback.
Sure, you can use Partytown. Actually, I'd recommend that approach over this module. For the Partytown implementation, you don't even need
nuxt-gtag
: