diff --git a/nuxt.config.js b/nuxt.config.js index de500bc..a11dc66 100644 --- a/nuxt.config.js +++ b/nuxt.config.js @@ -6,7 +6,7 @@ export default { title: 'buddysCloud', script: [ { - src: 'https://www.googletagmanager.com/gtag/js?id=G-PMXV6BN06E', + src: 'https://www.googletagmanager.com/gtag/js?id=G-KNJFL438C1', async: true, }, { @@ -14,7 +14,7 @@ export default { window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); - gtag('config', 'G-PMXV6BN06E'); + gtag('config', 'G-KNJFL438C1'); `, type: 'text/javascript', }, @@ -72,7 +72,7 @@ export default { // '@nuxtjs/google-analytics' // ], gtm: { - id: 'GTM-PL75JP66', + id: 'GTM-5M5JNS4K', layer: 'dataLayer', pageTracking: false, // ✅ 关闭 GTM 的自动页面跟踪,避免和 GA 冲突 enabled: true @@ -87,5 +87,13 @@ export default { // }, // Build Configuration: https://go.nuxtjs.dev/config-build build: { + }, + render: { + csp: { + policies: { + 'script-src': ["'self'", "'unsafe-eval'"], + // 其他策略... + } + } } }