Welcome to mirror list, hosted at ThFree Co, Russian Federation.

analytics.js « docs - github.com/mozilla/ssl-config-generator.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 682945b78d41aa80327d7bc6215ace5cbbd5fc25 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/*
  Read more about our custom configuration and use of Google Analytics here:
  https://bugzilla.mozilla.org/show_bug.cgi?id=1122305#c8
*/

const doNotTrack = navigator.doNotTrack || navigator.msDoNotTrack || window.doNotTrack;

if (doNotTrack !== '1' && doNotTrack !== 'yes') {
  window.dataLayer = window.dataLayer || [];

  function gtag() {
    dataLayer.push(arguments);
  }

  gtag('js', new Date());
  gtag(
    'config',
    'UA-66267220-1',
    {
      'anonymize_ip': true,
    }
  );
}