Skip to content

Commit 8613d9c

Browse files
committed
add secondary tracker
1 parent 0b16150 commit 8613d9c

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

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

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const domains = {
22
'remix-alpha.ethereum.org': 27,
3-
'remix-beta.ethereum.org': 1,
3+
'remix-beta.ethereum.org': 25,
44
'remix.ethereum.org': 23,
55
'6fd22d6fe5549ad4c4d8fd3ca0b7816b.mod': 35 // remix desktop
66
}
@@ -12,9 +12,14 @@ if (domains[window.location.hostname]) {
1212
_paq.push(['trackPageView']);
1313
_paq.push(['enableLinkTracking']);
1414
(function () {
15-
var u = "https://remix-ethereum.matomo.cloud/matomo.php";
15+
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;
20+
21+
// Also send all of the tracking data to the new Matomo server
22+
_paq.push(['addTracker', secondaryTracker, secondaryWebsiteId]);
1823
var d = document, g = d.createElement('script'), s = d.getElementsByTagName('script')[0]
1924
g.type = 'text/javascript'; g.async = true; g.src = u + 'matomo.js'; s.parentNode.insertBefore(g, s)
2025
})()

0 commit comments

Comments
 (0)