浏览代码

change: 网站统计key调整. 涉及百度谷歌微软.

peter 5 月之前
父节点
当前提交
26a265c55a
共有 3 个文件被更改,包括 8 次插入8 次删除
  1. 5 5
      plugins/baidu-analytics.js
  2. 1 1
      plugins/clarity.js
  3. 2 2
      plugins/google-analytics.js

+ 5 - 5
plugins/baidu-analytics.js

@@ -1,10 +1,10 @@
 export default ({ app }) => {
   if (process.client) {
     // 只在生产环境加载百度统计脚本
-    const script = document.createElement('script');
-    script.src = 'https://hm.baidu.com/hm.js?e1b6873b68a812cb909ea1f38dea478a';
-    script.async = true;
-    script.defer = true;
-    document.head.appendChild(script);
+    const script = document.createElement('script')
+    script.src = 'https://hm.baidu.com/hm.js?59de87d4fb96946fa6fe20e34d8c014c'
+    script.async = true
+    script.defer = true
+    document.head.appendChild(script)
   }
 }

+ 1 - 1
plugins/clarity.js

@@ -12,7 +12,7 @@ export default ({ app }) => {
         t.src = "https://www.clarity.ms/tag/" + i;
         y = l.getElementsByTagName(r)[0];
         y.parentNode.insertBefore(t, y);
-      })(window, document, "clarity", "script", "khczgl3nfl");
+      })(window, document, "clarity", "script", "ogbcy41zs4");
     }
   };
   

+ 2 - 2
plugins/google-analytics.js

@@ -4,7 +4,7 @@ export default ({ app }) => {
     // 只在生产环境加载 Google Analytics 脚本
     const script = document.createElement('script');
     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);
 
     window.dataLayer = window.dataLayer || [];
@@ -12,6 +12,6 @@ export default ({ app }) => {
       window.dataLayer.push(arguments);
     }
     gtag('js', new Date());
-    gtag('config', 'G-MZQ91YR2W2');
+    gtag('config', 'G-G4G8QQY1ZX');
   }
 };