diff options
author | Brian Picciano <mediocregopher@gmail.com> | 2018-09-03 15:32:18 -0400 |
---|---|---|
committer | Brian Picciano <mediocregopher@gmail.com> | 2018-09-03 19:36:38 -0400 |
commit | bfefb5fa2e831e32672c2feaa844bbc1a7d41bc3 (patch) | |
tree | a53551e8cf3b061757d5f7b67f914bdd07247e69 /_includes/google-analytics.html | |
parent | 89b452fcceba6bec4f9f80b21113b90688a16406 (diff) |
restarted with minima theme, but am completely revamping it to use custom theme based on getskeleton.org
Diffstat (limited to '_includes/google-analytics.html')
-rw-r--r-- | _includes/google-analytics.html | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/_includes/google-analytics.html b/_includes/google-analytics.html new file mode 100644 index 0000000..e9afb20 --- /dev/null +++ b/_includes/google-analytics.html @@ -0,0 +1,12 @@ +<script> +if(!(window.doNotTrack === "1" || navigator.doNotTrack === "1" || navigator.doNotTrack === "yes" || navigator.msDoNotTrack === "1")) { + (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ + (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), + m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) + })(window,document,'script','https://www.google-analytics.com/analytics.js','ga'); + + ga('create', '{{ site.google_analytics }}', 'auto'); + ga('send', 'pageview'); +} +</script> + |