mirror of
https://github.com/minoplhy/crappy-jekyll.git
synced 2024-11-14 05:36:46 +00:00
10 lines
468 B
HTML
10 lines
468 B
HTML
<script async src="https://www.googletagmanager.com/gtag/js?id={{ site.google_analytics }}"></script>
|
|
<script>
|
|
window['ga-disable-{{ site.google_analytics }}'] = window.doNotTrack === "1" || navigator.doNotTrack === "1" || navigator.doNotTrack === "yes" || navigator.msDoNotTrack === "1";
|
|
window.dataLayer = window.dataLayer || [];
|
|
function gtag(){dataLayer.push(arguments);}
|
|
gtag('js', new Date());
|
|
|
|
gtag('config', '{{ site.google_analytics }}');
|
|
</script>
|