From 0ed1d6e3922c062e17e0681ffd79e8d9f4df701f Mon Sep 17 00:00:00 2001 From: yann300 Date: Thu, 29 Jun 2023 11:18:03 +0200 Subject: [PATCH] update matomo url --- apps/remix-ide/src/assets/js/loader.js | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/apps/remix-ide/src/assets/js/loader.js b/apps/remix-ide/src/assets/js/loader.js index a8c5692052..51887984c7 100644 --- a/apps/remix-ide/src/assets/js/loader.js +++ b/apps/remix-ide/src/assets/js/loader.js @@ -15,6 +15,8 @@ const domainsSecondaryTracker = { if (domains[window.location.hostname]) { var _paq = window._paq = window._paq || [] /* tracker methods like "setCustomDimension" should be called before "trackPageView" */ + _paq.push(["setExcludedQueryParams", ["code","gist"]]); + _paq.push(["setExcludedReferrers", ["etherscan.io"]]); _paq.push(['disableCookies']); _paq.push(['enableJSErrorTracking']); _paq.push(['trackPageView']); @@ -25,15 +27,15 @@ if (domains[window.location.hostname]) { _paq.push(['optUserOut']) } (function () { - var u = "https://matomo.ethereum.org/"; - _paq.push(['setTrackerUrl', u + 'matomo.php']) - _paq.push(['setSiteId', domains[window.location.hostname]]) - // Send all of the Remix tracking data to the secondary Matomo server - var secondaryTracker = 'https://ethereumfoundation.matomo.cloud/matomo.php'; + var u = "https://ethereumfoundation.matomo.cloud/"; + _paq.push(['setTrackerUrl', u + 'matomo.php']); + _paq.push(['setSiteId', domains[window.location.hostname]]); + // Send all of the Remix tracking data to the secondary Matomo server (the EF one). + var secondaryTracker = 'https://matomo.ethereum.org/matomo.php'; var secondaryWebsiteId = domainsSecondaryTracker[window.location.hostname]; _paq.push(['addTracker', secondaryTracker, secondaryWebsiteId]); - 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) + var d = document, g = d.createElement('script'), s = d.getElementsByTagName('script')[0]; + g.async = true; g.src = '//cdn.matomo.cloud/ethereumfoundation.matomo.cloud/matomo.js'; s.parentNode.insertBefore(g,s); })() }