trash google analytics - better late than never! - closes #2311
It's about time to make Stallman proud.pull/3048/head
parent
3f70ec372f
commit
ff7d5b496f
|
@ -49,10 +49,6 @@ trait AssetHelper { self: I18nHelper =>
|
|||
s"""<script src="${staticUrl("javascripts/vendor/jquery.min.js")}"></script>"""
|
||||
}
|
||||
|
||||
val gaTag = Html {
|
||||
s"""<script src="${staticUrl("javascripts/ga.js")}"></script>"""
|
||||
}
|
||||
|
||||
val highchartsTag = cdnOrLocal(
|
||||
cdn = "//code.highcharts.com/4.1.4/highcharts.js",
|
||||
test = "window.Highcharts",
|
||||
|
|
|
@ -47,6 +47,5 @@
|
|||
userId: "null"
|
||||
});
|
||||
}
|
||||
@gaTag
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -27,7 +27,6 @@
|
|||
</div>
|
||||
@jsTag("vendor/chessground.min.js")
|
||||
@jsTagCompiled("puzzle.js")
|
||||
@gaTag
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
|
|
@ -46,6 +46,5 @@
|
|||
userId: "null"
|
||||
});
|
||||
}
|
||||
@gaTag
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -23,6 +23,5 @@
|
|||
@jQueryTag
|
||||
@jsAt("javascripts/vendor/chessground.min.js", true, false, assetVersion)
|
||||
@jsAt("compiled/tv.js", true, false, assetVersion)
|
||||
@gaTag
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -1,10 +0,0 @@
|
|||
(window.lichess ? lichess.requestIdleCallback : setTimeout)(function() {
|
||||
if (/.+\.lichess\.org/.test(document.domain) && !window.dataLayer) {
|
||||
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
||||
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
||||
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
||||
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
|
||||
ga('create', 'UA-7935029-3', 'auto');
|
||||
ga('send', 'pageview');
|
||||
}
|
||||
});
|
|
@ -98,8 +98,7 @@ function makeBundle(filename) {
|
|||
'./dep/mousetrap.min.js',
|
||||
'./dep/hoverintent.min.js',
|
||||
'./dist/' + filename,
|
||||
'./dist/ab.js',
|
||||
'../../public/javascripts/ga.js'
|
||||
'./dist/ab.js'
|
||||
])
|
||||
.pipe(concat(filename.replace('source.', '')))
|
||||
.pipe(gulp.dest(destination));
|
||||
|
|
Loading…
Reference in New Issue