johannschopplich / nuxt-gtag

🔸 Google Analytics & Ads integration made easy

Home Page:https://developers.google.com/tag-platform/gtagjs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Own subdomain as proxy

johannschopplich opened this issue · comments

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>