Jelajahi Sumber

change: change clarity / google-analytics code.

peter 2 bulan lalu
induk
melakukan
c86fd1582a
2 mengubah file dengan 3 tambahan dan 3 penghapusan
  1. 1 1
      plugins/clarity.js
  2. 2 2
      plugins/google-analytics.js

+ 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", "ptncflmork");
     }
   };
   

+ 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-7NHZ6CX5DC';
     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-7NHZ6CX5DC');
   }
 };