summaryrefslogtreecommitdiff
path: root/_includes/analytics-providers
diff options
context:
space:
mode:
Diffstat (limited to '_includes/analytics-providers')
-rw-r--r--_includes/analytics-providers/custom.html3
-rw-r--r--_includes/analytics-providers/google.html14
2 files changed, 0 insertions, 17 deletions
diff --git a/_includes/analytics-providers/custom.html b/_includes/analytics-providers/custom.html
deleted file mode 100644
index 58448f7..0000000
--- a/_includes/analytics-providers/custom.html
+++ /dev/null
@@ -1,3 +0,0 @@
-<!-- start custom analytics snippet -->
-
-<!-- end custom analytics snippet -->
diff --git a/_includes/analytics-providers/google.html b/_includes/analytics-providers/google.html
deleted file mode 100644
index 5fbd17d..0000000
--- a/_includes/analytics-providers/google.html
+++ /dev/null
@@ -1,14 +0,0 @@
-{%- if site.analytics.google.tracking_id -%}
- <!-- Global site tag (gtag.js) - Google Analytics -->
- <script async src="https://www.googletagmanager.com/gtag/js?id={{ site.analytics.google.tracking_id }}"></script>
- <script>
- window.dataLayer = window.dataLayer || [];
- function gtag(){dataLayer.push(arguments);}
- gtag('js', new Date());
-
- gtag('config', '{{ site.analytics.google.tracking_id }}');
- {% if site.analytics.google.anonymize_ip == true %}
- gtag('config', '{{ site.analytics.google.tracking_id }}', { 'anonymize_ip': true });
- {% endif %}
- </script>
-{%- endif -%}