summaryrefslogtreecommitdiff
path: root/_includes/analytics-providers/google.html
diff options
context:
space:
mode:
Diffstat (limited to '_includes/analytics-providers/google.html')
-rw-r--r--_includes/analytics-providers/google.html14
1 files changed, 0 insertions, 14 deletions
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 -%}