fix(index.html): update Microsoft Clarity integration for tracking

- Modified the Microsoft Clarity script in index.html to use a hardcoded tracking ID instead of relying on the VITE_CLARITY_ID environment variable. This change ensures consistent tracking on the app.worklenz.com domain.
This commit is contained in:
chamiakJ
2025-05-15 19:13:05 +05:30
parent 7b04821ef1
commit 2e36a477ce

View File

@@ -18,12 +18,12 @@
<script src="/unregister-sw.js"></script> <script src="/unregister-sw.js"></script>
<!-- Microsoft Clarity --> <!-- Microsoft Clarity -->
<script type="text/javascript"> <script type="text/javascript">
if (window.location.hostname === 'app.worklenz.com' && window.VITE_CLARITY_ID) { if (window.location.hostname === 'app.worklenz.com') {
(function(c,l,a,r,i,t,y){ (function(c,l,a,r,i,t,y){
c[a]=c[a]||function(){(c[a].q=c[a].q||[]).push(arguments)}; c[a]=c[a]||function(){(c[a].q=c[a].q||[]).push(arguments)};
t=l.createElement(r);t.async=1;t.src="https://www.clarity.ms/tag/"+i; t=l.createElement(r);t.async=1;t.src="https://www.clarity.ms/tag/dx77073klh";
y=l.getElementsByTagName(r)[0];y.parentNode.insertBefore(t,y); y=l.getElementsByTagName(r)[0];y.parentNode.insertBefore(t,y);
})(window, document, "clarity", "script", window.VITE_CLARITY_ID); })(window, document, "clarity", "script", "dx77073klh");
} }
</script> </script>
</head> </head>