Skip to content

Commit 8288294

Browse files
committed
remove analytics
1 parent 74e80ef commit 8288294

File tree

1 file changed

+0
-29
lines changed

1 file changed

+0
-29
lines changed

build/templates/analytics.template

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,3 @@
11
<script>
2-
(function() {
3-
if (window.location.hostname.indexOf("webglfundamentals.org") < 0) {
4-
return;
5-
}
6-
7-
function addScript(src, type, fn) {
8-
const script = document.createElement('script');
9-
const firstScript = document.getElementsByTagName('script')[0];
10-
script.async = true;
11-
script.defer = true;
12-
script.type = type || 'javascript';
13-
if (fn) {
14-
script.addEventListener('load', fn);
15-
}
16-
script.src = src;
17-
firstScript.parentNode.insertBefore(script, firstScript);
18-
}
19-
20-
// can't do this because it would eat contexts
21-
//addScript('//gpustats.org/stats.js', 'module');
22-
23-
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
24-
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
25-
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
26-
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
27-
28-
ga('create', 'UA-59804936-1', 'auto');
29-
ga('send', 'pageview');
30-
}());
312
</script>
323

0 commit comments

Comments
 (0)