switch back to plain old Google Analytics
authorDan Allen <dan@opendevise.com>
Fri, 5 Jul 2019 20:40:35 +0000 (14:40 -0600)
committerDan Allen <dan@opendevise.com>
Fri, 5 Jul 2019 20:40:35 +0000 (14:40 -0600)
src/partials/head-scripts.hbs

index 882f117..ddbaa95 100644 (file)
@@ -1,4 +1,4 @@
     {{#if site.keys.googleAnalytics}}
-    <script>(window.dataLayer=window.dataLayer||[]).push({'gtm.start':+new Date(),event:'gtm.js'})</script>
-    <script async src="https://www.googletagmanager.com/gtm.js?id={{site.keys.googleAnalytics}}"></script>
+    <script async src="https://www.googletagmanager.com/gtag/js?id={{site.keys.googleAnalytics}}"></script>
+    <script>(window.dataLayer=window.dataLayer||[]).push(['js',new Date()],['config','{{site.keys.googleAnalytics}}'])</script>
     {{/if}}