1
0
mirror of https://github.com/ascribe/wp-theme synced 2024-12-22 09:13:38 +01:00

remove Google Analytics

This commit is contained in:
Matthias Kretschmann 2018-05-23 13:21:18 +02:00
parent ea580afc8f
commit e11b68a6de
Signed by: m
GPG Key ID: 606EEEF3C479A91F

View File

@ -233,37 +233,5 @@ if ($twitter) {
<?php wp_footer(); ?> <?php wp_footer(); ?>
<script>
if (!_dntEnabled()) {
(function(window) {
// Google Analytics async snippet
// http://goo.gl/3FPNDx
window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};
ga.l=+new Date;
// Create the GA tracker
ga('create', 'UA-60614729-2', 'auto', {siteSpeedSampleRate: 10});
// Send initial pageview
ga('send', 'pageview');
// Track uncaught errors
window.onerror = function(message, url, line, col) {
var desc = message + ' (line: ' + line + ', url: ' + url + ', col: '
+ col + ')';
ga('send', 'exception', {
exDescription: 'window.onerror: ' + desc,
exFatal: false
});
};
}(window));
}
</script>
<script async src="//www.google-analytics.com/analytics.js"></script>
</body> </body>
</html> </html>