Disable Google analytics.

This commit is contained in:
Justin Hsu
2021-11-22 01:23:49 -05:00
parent 56f86d8568
commit 0ae0e4fe6a
2 changed files with 22 additions and 19 deletions
+19 -16
View File
@@ -2,24 +2,27 @@
<html>
<head>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-33267683-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
<!-- <script async src="https://www.googletagmanager.com/gtag/js?id=UA-33267683-1"></script> -->
<!-- <script> -->
<!-- window.dataLayer = window.dataLayer || []; -->
<!-- function gtag(){dataLayer.push(arguments);} -->
<!-- gtag('js', new Date()); -->
gtag('config', 'UA-33267683-1');
<!-- gtag('config', 'UA-33267683-1'); -->
var trackLink = function(label,url) {
gtag('event', 'click', {
'event_category': 'link',
'event_label': label,
'event_action': url,
'transport_type': 'beacon',
'event_callback': function(){document.location = url;}
});
}
</script>
<!-- var trackLink = function(label,url) { -->
<!-- gtag('event', 'click', { -->
<!-- 'event_category': 'link', -->
<!-- 'event_label': label, -->
<!-- 'event_action': url, -->
<!-- 'transport_type': 'beacon', -->
<!-- 'event_callback': function(){document.location = url;} -->
<!-- }); -->
<!-- } -->
<!-- </script> -->
<script data-goatcounter="https://justin.goatcounter.com/count"
async src="//gc.zgo.at/count.js"></script>
<title> Justin Hsu </title>
<link rel="stylesheet" type="text/css" href="css/style.css">