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

View File

@ -2,24 +2,27 @@
<html> <html>
<head> <head>
<!-- Global site tag (gtag.js) - Google Analytics --> <!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-33267683-1"></script> <!-- <script async src="https://www.googletagmanager.com/gtag/js?id=UA-33267683-1"></script> -->
<script> <!-- <script> -->
window.dataLayer = window.dataLayer || []; <!-- window.dataLayer = window.dataLayer || []; -->
function gtag(){dataLayer.push(arguments);} <!-- function gtag(){dataLayer.push(arguments);} -->
gtag('js', new Date()); <!-- gtag('js', new Date()); -->
gtag('config', 'UA-33267683-1'); <!-- gtag('config', 'UA-33267683-1'); -->
var trackLink = function(label,url) { <!-- var trackLink = function(label,url) { -->
gtag('event', 'click', { <!-- gtag('event', 'click', { -->
'event_category': 'link', <!-- 'event_category': 'link', -->
'event_label': label, <!-- 'event_label': label, -->
'event_action': url, <!-- 'event_action': url, -->
'transport_type': 'beacon', <!-- 'transport_type': 'beacon', -->
'event_callback': function(){document.location = url;} <!-- 'event_callback': function(){document.location = url;} -->
}); <!-- }); -->
} <!-- } -->
</script> <!-- </script> -->
<script data-goatcounter="https://justin.goatcounter.com/count"
async src="//gc.zgo.at/count.js"></script>
<title> Justin Hsu </title> <title> Justin Hsu </title>
<link rel="stylesheet" type="text/css" href="css/style.css"> <link rel="stylesheet" type="text/css" href="css/style.css">

View File

@ -14,13 +14,13 @@
$school$.</br> $school$.</br>
$endif$ $endif$
$if(url)$ $if(url)$
[<a href="$url$" onclick="trackLink('@$identifier$:link','$url$'); return false;">Paper</a>] [<a href="$url$">Paper</a>]
$endif$ $endif$
$if(slides)$ $if(slides)$
[<a href="$slides$" onclick="trackLink('@$identifier$:slides','$slides$'); return false;">Slides</a>] [<a href="$slides$">Slides</a>]
$endif$ $endif$
$if(poster)$ $if(poster)$
[<a href="$poster$" onclick="trackLink('@$identifier$:poster','$poster$'); return false;">Poster</a>] [<a href="$poster$">Poster</a>]
$endif$ $endif$
<br> <br>
$if(note)$ $if(note)$