summaryrefslogtreecommitdiff
path: root/src/_includes
diff options
context:
space:
mode:
Diffstat (limited to 'src/_includes')
-rw-r--r--src/_includes/google-analytics.html12
-rw-r--r--src/_includes/head.html3
2 files changed, 0 insertions, 15 deletions
diff --git a/src/_includes/google-analytics.html b/src/_includes/google-analytics.html
deleted file mode 100644
index e9afb20..0000000
--- a/src/_includes/google-analytics.html
+++ /dev/null
@@ -1,12 +0,0 @@
-<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>
-
diff --git a/src/_includes/head.html b/src/_includes/head.html
index 9ea6d45..e1cbd06 100644
--- a/src/_includes/head.html
+++ b/src/_includes/head.html
@@ -10,9 +10,6 @@
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.3.1/css/all.css" integrity="sha384-mzrmE5qonljUremFsqc01SB46JvROS7bZs3IO2EmfFsd15uHvIt+Y8vEf7N7fWAU" crossorigin="anonymous">
<link rel="stylesheet" href="{{ "/assets/main.css" | relative_url }}">
{%- feed_meta -%}
- {%- if jekyll.environment == 'production' and site.google_analytics -%}
- {%- include google-analytics.html -%}
- {%- endif -%}
<script src="{{ "/assets/main.js" | relative_url }}"></script>
</head>