Disable Google analytics.
This commit is contained in:
parent
56f86d8568
commit
0ae0e4fe6a
35
index.html
35
index.html
|
@ -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">
|
||||
|
|
|
@ -14,13 +14,13 @@
|
|||
$school$.</br>
|
||||
$endif$
|
||||
$if(url)$
|
||||
[<a href="$url$" onclick="trackLink('@$identifier$:link','$url$'); return false;">Paper</a>]
|
||||
[<a href="$url$">Paper</a>]
|
||||
$endif$
|
||||
$if(slides)$
|
||||
[<a href="$slides$" onclick="trackLink('@$identifier$:slides','$slides$'); return false;">Slides</a>]
|
||||
[<a href="$slides$">Slides</a>]
|
||||
$endif$
|
||||
$if(poster)$
|
||||
[<a href="$poster$" onclick="trackLink('@$identifier$:poster','$poster$'); return false;">Poster</a>]
|
||||
[<a href="$poster$">Poster</a>]
|
||||
$endif$
|
||||
<br>
|
||||
$if(note)$
|
||||
|
|
Loading…
Reference in New Issue