Skip to content

Commit 24558bc

Browse files
committed
add condition
1 parent 8613d9c commit 24558bc

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

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

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,13 @@ if (domains[window.location.hostname]) {
1515
var u = "https://matomo.ethereum.org/";
1616
_paq.push(['setTrackerUrl', u + 'matomo.php'])
1717
_paq.push(['setSiteId', domains[window.location.hostname]])
18-
var secondaryTracker = 'https://remix-ethereum.matomo.cloud/matomo.php';
19-
var secondaryWebsiteId = 1;
18+
if (window.location.hostname === 'remix-beta.ethereum.org') {
19+
var secondaryTracker = 'https://remix-ethereum.matomo.cloud/matomo.php';
20+
var secondaryWebsiteId = 1;
2021

21-
// Also send all of the tracking data to the new Matomo server
22-
_paq.push(['addTracker', secondaryTracker, secondaryWebsiteId]);
22+
// Send all of the tracking data to the secondary Matomo server
23+
_paq.push(['addTracker', secondaryTracker, secondaryWebsiteId]);
24+
}
2325
var d = document, g = d.createElement('script'), s = d.getElementsByTagName('script')[0]
2426
g.type = 'text/javascript'; g.async = true; g.src = u + 'matomo.js'; s.parentNode.insertBefore(g, s)
2527
})()

0 commit comments

Comments
 (0)