|
@@ -4,7 +4,7 @@ export default ({ app }) => {
|
|
// 只在生产环境加载 Google Analytics 脚本
|
|
// 只在生产环境加载 Google Analytics 脚本
|
|
const script = document.createElement('script');
|
|
const script = document.createElement('script');
|
|
script.async = true;
|
|
script.async = true;
|
|
- script.src = 'https://www.googletagmanager.com/gtag/js?id=G-MZQ91YR2W2';
|
|
|
|
|
|
+ script.src = 'https://www.googletagmanager.com/gtag/js?id=G-G4G8QQY1ZX';
|
|
document.head.appendChild(script);
|
|
document.head.appendChild(script);
|
|
|
|
|
|
window.dataLayer = window.dataLayer || [];
|
|
window.dataLayer = window.dataLayer || [];
|
|
@@ -12,6 +12,6 @@ export default ({ app }) => {
|
|
window.dataLayer.push(arguments);
|
|
window.dataLayer.push(arguments);
|
|
}
|
|
}
|
|
gtag('js', new Date());
|
|
gtag('js', new Date());
|
|
- gtag('config', 'G-MZQ91YR2W2');
|
|
|
|
|
|
+ gtag('config', 'G-G4G8QQY1ZX');
|
|
}
|
|
}
|
|
};
|
|
};
|