update ga

pull/1/head
Robert Austin 2019-03-13 17:46:17 +10:00
parent 4f35c2e653
commit 593d6e5fba
1 changed files with 24 additions and 26 deletions

View File

@ -1,7 +1,5 @@
{% if jekyll.environment == "production" %} {% if jekyll.environment == "production" %}
{% assign gid = site.env.NETLIFY_GOOGLE_ANALYTICS_ID %} {% assign gid = site.env.NETLIFY_GOOGLE_ANALYTICS_ID %}
{{ gid }}
{% if gid %} {% if gid %}
<script async src="https://www.googletagmanager.com/gtag/js?id={{ gid }}"></script> <script async src="https://www.googletagmanager.com/gtag/js?id={{ gid }}"></script>
<script> <script>