_includes/components/analytics.google.liquid in databook-theme-0.1.1 vs _includes/components/analytics.google.liquid in databook-theme-0.1.2
- old
+ new
@@ -1,11 +1,11 @@
-{%- assign google_analytics_id = site.google_analytics.id -%}
-
-{%- if google_analytics_id -%}
- <script async src="https://www.googletagmanager.com/gtag/js?id={{google_analytics_id}}"></script>
- <script>
- window.dataLayer = window.dataLayer || [];
- function gtag(){ dataLayer.push(arguments); }
- gtag('js', new Date());
- gtag('config', '{{google_analytics_id}}');
- </script>
-{%- endif -%}
+{%- assign google_analytics_id = site.google_analytics.id -%}
+
+{%- if google_analytics_id -%}
+ <script async src="https://www.googletagmanager.com/gtag/js?id={{google_analytics_id}}"></script>
+ <script>
+ window.dataLayer = window.dataLayer || [];
+ function gtag(){ dataLayer.push(arguments); }
+ gtag('js', new Date());
+ gtag('config', '{{google_analytics_id}}');
+ </script>
+{%- endif -%}