Own subdomain as proxy
johannschopplich opened this issue · comments
Johann Schopplich commented
Discussed in #39
Originally posted by urlexnilz January 5, 2024
Hi,
I just noticed that "nuxt-gtag" is using https://www.googletagmanager.com/gtag/js?id=${id} (hardcoded in code). We want to use a docker image as proxy for the domain www.googletagmanager.com. Is it possible to change the domain via parameter?
// Inject the Google Analytics script.
useHead({
script: [{ src: `https://www.googletagmanager.com/gtag/js?id=${id}` }],
})
```</div>