|
|
@ -15,6 +15,8 @@ const domainsSecondaryTracker = { |
|
|
|
if (domains[window.location.hostname]) { |
|
|
|
if (domains[window.location.hostname]) { |
|
|
|
var _paq = window._paq = window._paq || [] |
|
|
|
var _paq = window._paq = window._paq || [] |
|
|
|
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */ |
|
|
|
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */ |
|
|
|
|
|
|
|
_paq.push(["setExcludedQueryParams", ["code","gist"]]); |
|
|
|
|
|
|
|
_paq.push(["setExcludedReferrers", ["etherscan.io"]]); |
|
|
|
_paq.push(['disableCookies']); |
|
|
|
_paq.push(['disableCookies']); |
|
|
|
_paq.push(['enableJSErrorTracking']); |
|
|
|
_paq.push(['enableJSErrorTracking']); |
|
|
|
_paq.push(['trackPageView']); |
|
|
|
_paq.push(['trackPageView']); |
|
|
@ -25,15 +27,15 @@ if (domains[window.location.hostname]) { |
|
|
|
_paq.push(['optUserOut']) |
|
|
|
_paq.push(['optUserOut']) |
|
|
|
} |
|
|
|
} |
|
|
|
(function () { |
|
|
|
(function () { |
|
|
|
var u = "https://matomo.ethereum.org/"; |
|
|
|
var u = "https://ethereumfoundation.matomo.cloud/"; |
|
|
|
_paq.push(['setTrackerUrl', u + 'matomo.php']) |
|
|
|
_paq.push(['setTrackerUrl', u + 'matomo.php']); |
|
|
|
_paq.push(['setSiteId', domains[window.location.hostname]]) |
|
|
|
_paq.push(['setSiteId', domains[window.location.hostname]]); |
|
|
|
// Send all of the Remix tracking data to the secondary Matomo server
|
|
|
|
// Send all of the Remix tracking data to the secondary Matomo server (the EF one).
|
|
|
|
var secondaryTracker = 'https://ethereumfoundation.matomo.cloud/matomo.php'; |
|
|
|
var secondaryTracker = 'https://matomo.ethereum.org/matomo.php'; |
|
|
|
var secondaryWebsiteId = domainsSecondaryTracker[window.location.hostname]; |
|
|
|
var secondaryWebsiteId = domainsSecondaryTracker[window.location.hostname]; |
|
|
|
_paq.push(['addTracker', secondaryTracker, secondaryWebsiteId]);
|
|
|
|
_paq.push(['addTracker', secondaryTracker, secondaryWebsiteId]);
|
|
|
|
var d = document, g = d.createElement('script'), s = d.getElementsByTagName('script')[0] |
|
|
|
var d = document, g = d.createElement('script'), s = d.getElementsByTagName('script')[0]; |
|
|
|
g.type = 'text/javascript'; g.async = true; g.src = u + 'matomo.js'; s.parentNode.insertBefore(g, s) |
|
|
|
g.async = true; g.src = '//cdn.matomo.cloud/ethereumfoundation.matomo.cloud/matomo.js'; s.parentNode.insertBefore(g,s); |
|
|
|
})() |
|
|
|
})() |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|