Skip to content

Commit b6e5b6a

Browse files
yann300Aniket-Engg
authored andcommitted
fix Matomo tracking
1 parent f6acfef commit b6e5b6a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

apps/remix-ide/src/assets/js/loader.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ function trackDomain(domainToTrack, u, paqName) {
4444
}
4545

4646
if (window.electronAPI) {
47+
// desktop
4748
window.electronAPI.canTrackMatomo().then((canTrack) => {
4849
if (!canTrack) {
4950
console.log('Matomo tracking is disabled on Dev mode')
@@ -63,7 +64,8 @@ if (window.electronAPI) {
6364
}
6465
})
6566
} else {
66-
if (domainOnPremToTrack) {
67+
// live site but we don't track localhost
68+
if (domainOnPremToTrack && window.location.hostname !== 'localhost') {
6769
trackDomain(domainOnPremToTrack, 'https://matomo.remix.live/matomo/', '_paq')
6870
}
6971
}

0 commit comments

Comments
 (0)