diff --git a/.collaboration b/.collaboration index 54c167d6..bd69f999 100644 --- a/.collaboration +++ b/.collaboration @@ -2434,19 +2434,7 @@ }, { "ModuleName": "CustomLibrary", - "State": 1, - "LockedBy": { - "UserName": "cuckooent", - "Email": "phoben@qq.com" - }, - "LockDateTime": "2024-12-15T19:29:00.2045459+08:00", - "ModuleType": 12, - "ToRemoveFiles": [ - "CustomLibraries.json", - "UserFile\\BaseCss.css", - "UserFile\\CustomFormula.js", - "UserFile\\Load.js" - ] + "ModuleType": 12 }, { "ModuleName": "MapJsonFile", diff --git a/UserFile/Load.js b/UserFile/Load.js index c9769b0a..4d973136 100644 --- a/UserFile/Load.js +++ b/UserFile/Load.js @@ -2,3 +2,28 @@ function isDingTalk() { const userAgent = navigator.userAgent || navigator.vendor || window.opera; return /DingTalk/i.test(userAgent); } + +// 初始化google监控 + +(async () => { + const { initializeApp } = await import('https://www.gstatic.com/firebasejs/11.0.2/firebase-app.js'); + const { getAnalytics } = await import('https://www.gstatic.com/firebasejs/11.0.2/firebase-analytics.js'); + const { getPerformance } = await import("https://www.gstatic.com/firebasejs/11.0.2/firebase-performance.js"); + + const firebaseConfig = { + apiKey: "AIzaSyDyEB3y1y3cNBX_vQszWWZ28-pH33gk49A", + authDomain: "clue-a7a8f.firebaseapp.com", + projectId: "clue-a7a8f", + storageBucket: "clue-a7a8f.firebasestorage.app", + messagingSenderId: "1077280881146", + appId: "1:1077280881146:web:b244d261273b6f3acc0c43", + measurementId: "G-8KJXRQ4E9N" + }; + + // Initialize Firebase + const app = initializeApp(firebaseConfig); + const analytics = getAnalytics(app); + const perf = getPerformance(app); + + window.performance.mark("pageStart"); +})();