S
S
Sys3X2019-02-03 18:18:40
JavaScript
Sys3X, 2019-02-03 18:18:40

Why doesn't TOR browser load the piwik.js script?

I'm using the PIWIK statistics script and placing the piwik.js script before closing the head tag. This works in all browsers except TOR - it says in the developer console
Loading script at domain.com/piwik/piwik.js failed.
Statistics script code that accesses domain.com/piwik/piwik.js:

var _paq = _paq || [];
  _paq.push(["setDomains", ["*.mywebsite.ru"]]);
  _paq.push(['trackPageView']);
  _paq.push(['enableLinkTracking']);
  (function() {
    var u="https://domain.com/piwik/";
    _paq.push(['setTrackerUrl', u+'piwik.php']);
    _paq.push(['setSiteId', 35]);
    var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
    g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);
  })();

At the same time, on the Network tab, I see the response code 200 from the remote server "domain.com" to the request piwik.js
The code works in other browsers, but not in TOR, help me figure out why.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question