15397: Remove code, configs, and docs for hosted git repo feature.
[arvados.git] / doc / _includes / _google_analytics.liquid
1 {% comment %}
2 Copyright (C) The Arvados Authors. All rights reserved.
3
4 SPDX-License-Identifier: CC-BY-SA-3.0
5 {% endcomment %}
6
7 <script>
8   window['ga-disable-{{ site.google_analytics }}'] =
9     window.doNotTrack === '1' ||
10     navigator.doNotTrack === '1' ||
11     navigator.doNotTrack === 'yes' ||
12     navigator.msDoNotTrack === '1';
13   window.dataLayer = window.dataLayer || [];
14   function gtag() {
15     window.dataLayer.push(arguments);
16   }
17   gtag('js', new Date());
18
19   gtag('config', '{{ site.google_analytics }}');
20 </script>
21 <script defer src="https://www.googletagmanager.com/gtag/js?id={{ site.google_analytics }}"></script>