Merge pull request #3290 from ethereum/matomoSec

send matomo data to secondary server
pull/3298/head
yann300 2 years ago committed by GitHub
commit 72d7ff3d2e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      apps/remix-ide/src/assets/js/loader.js

@ -15,6 +15,12 @@ if (domains[window.location.hostname]) {
var u = "https://matomo.ethereum.org/"; var u = "https://matomo.ethereum.org/";
_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 live tracking data to the secondary Matomo server
if (window.location.hostname === 'remix.ethereum.org') {
var secondaryTracker = 'https://remix-ethereum.matomo.cloud/matomo.php';
var secondaryWebsiteId = 1;
_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.type = 'text/javascript'; g.async = true; g.src = u + 'matomo.js'; s.parentNode.insertBefore(g, s)
})() })()

Loading…
Cancel
Save