修改cspbug和换了新的gtmid
This commit is contained in:
parent
12ccaad5f9
commit
df9c74ba16
@ -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'"],
|
||||
// 其他策略...
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user