csci8980-f21/templates/google-analytics.html

8 lines
440 B
HTML
Executable file

<script async src="https://www.googletagmanager.com/gtag/js?id=$google-analytics$"></script>
<script>
window['ga-disable-$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', '$google_analytics$');
</script>