Commit 68d87261 authored by Dan Allen's avatar Dan Allen

fix google analytics code for real

parent cab27f30
{{#if site.keys.googleAnalytics}}
<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>
<script>function gtag(){dataLayer.push(arguments)};window.dataLayer=window.dataLayer||[];gtag('js',new Date());gtag('config','{{site.keys.googleAnalytics}}')</script>
{{/if}}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment