Skip to content

Commit f236a1d

Browse files
committed
fix 51la issue
1 parent 139b8e9 commit f236a1d

1 file changed

Lines changed: 2 additions & 13 deletions

File tree

index.html

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -61,21 +61,10 @@
6161
</script>
6262
-->
6363

64-
<!-- 51LA Analytics - Production Only -->
64+
<!-- 51LA Analytics - Always loaded -->
6565
<script charset="UTF-8" id="LA_COLLECT" src="//sdk.51.la/js-sdk-pro.min.js"></script>
6666
<script>
67-
(function() {
68-
// Default 51LA ID for builder.hagicode.com
69-
// Falls back to this ID when VITE_51LA_ID is not configured
70-
const defaultId = 'L6b88a5yK4h2Xnci';
71-
72-
// Only load in production (checked at runtime via import.meta.env.PROD)
73-
// Note: In Vite builds, import.meta.env.PROD is true for production builds
74-
if (typeof import.meta !== 'undefined' && import.meta.env && import.meta.env.PROD) {
75-
const laId = import.meta.env.VITE_51LA_ID || defaultId;
76-
LA.init({id: laId, ck: laId, autoTrack: true, hashMode: true, screenRecord: true});
77-
}
78-
})();
67+
LA.init({id: "L6b88a5yK4h2Xnci", ck: "L6b88a5yK4h2Xnci", autoTrack: true, hashMode: true, screenRecord: true});
7968
</script>
8069
</head>
8170
<body>

0 commit comments

Comments
 (0)