Skip to content

Integration with Partytown #25

Closed Answered by johannschopplich
franzus5 asked this question in Q&A
Discussion options

You must be logged in to vote

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:

useHead({
  script: [
    {
      src: `https://www.googletagmanager.com/gtag/js?id=${process.env.NUXT_PUBLIC_GTAG_ID}`,
      type: 'text/partytown'
    },
  ],
})

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@franzus5
Comment options

Answer selected by johannschopplich
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants