@@ -5,6 +5,13 @@ const domains = {
55 '6fd22d6fe5549ad4c4d8fd3ca0b7816b.mod' : 35 // remix desktop
66}
77
8+ const domainsSecondaryTracker = {
9+ 'remix-alpha.ethereum.org' : 12 ,
10+ 'remix-beta.ethereum.org' : 10 ,
11+ 'remix.ethereum.org' : 8 ,
12+ '6fd22d6fe5549ad4c4d8fd3ca0b7816b.mod' : 20 // remix desktop
13+ }
14+
815if ( domains [ window . location . hostname ] ) {
916 var _paq = window . _paq = window . _paq || [ ]
1017 /* tracker methods like "setCustomDimension" should be called before "trackPageView" */
@@ -21,12 +28,10 @@ if (domains[window.location.hostname]) {
2128 var u = "https://matomo.ethereum.org/" ;
2229 _paq . push ( [ 'setTrackerUrl' , u + 'matomo.php' ] )
2330 _paq . push ( [ 'setSiteId' , domains [ window . location . hostname ] ] )
24- // Send all of the Remix live tracking data to the secondary Matomo server
25- if ( window . location . hostname === 'remix.ethereum.org' ) {
26- var secondaryTracker = 'https://remix-ethereum.matomo.cloud/matomo.php' ;
27- var secondaryWebsiteId = 1 ;
28- _paq . push ( [ 'addTracker' , secondaryTracker , secondaryWebsiteId ] ) ;
29- }
31+ // Send all of the Remix tracking data to the secondary Matomo server
32+ var secondaryTracker = 'https://ethereumfoundation.matomo.cloud/matomo.php' ;
33+ var secondaryWebsiteId = domainsSecondaryTracker [ window . location . hostname ] ;
34+ _paq . push ( [ 'addTracker' , secondaryTracker , secondaryWebsiteId ] ) ;
3035 var d = document , g = d . createElement ( 'script' ) , s = d . getElementsByTagName ( 'script' ) [ 0 ]
3136 g . type = 'text/javascript' ; g . async = true ; g . src = u + 'matomo.js' ; s . parentNode . insertBefore ( g , s )
3237 } ) ( )
0 commit comments