johannschopplich / nuxt-gtag

🔸 Google Analytics & Ads integration made easy
https://developers.google.com/tag-platform/gtagjs
MIT License
298 stars 9 forks source link

Own subdomain as proxy #46

Closed johannschopplich closed 7 months ago

johannschopplich commented 7 months ago

Discussed in https://github.com/johannschopplich/nuxt-gtag/discussions/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}` }], }) ```