Skip to content

Commit ea52dff

Browse files
committed
🐛 Disable GA proxy to avoid 403 on regional Google domains
The googleAnalytics: true shorthand routes runtime calls through /_scripts/p/<host>/, but the registry's allowlist only covers www.google.com — not regional cctlds like google.com.tw used by gtag.js' ga-audiences remarketing beacon. Calls from non-US visitors were rejected with 403 "Domain not allowed". proxy: false sends GA direct to Google; bundle: false stops shipping a copy of gtag.js first-party since the runtime fetches no longer benefit from it.
1 parent 5990ae3 commit ea52dff

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

nuxt.config.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,10 @@ export default defineNuxtConfig({
222222
scripts: {
223223
privacy: false,
224224
registry: {
225-
googleAnalytics: true,
225+
googleAnalytics: {
226+
bundle: false,
227+
proxy: false,
228+
},
226229
intercom: {
227230
trigger: { idleTimeout: 3000 },
228231
},

0 commit comments

Comments
 (0)