{{ if $.Site.GoogleAnalyticsTrackingId }}
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-3687044-6"></script>
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());

  gtag('config', '{{ $.Site.GoogleAnalyticsTrackingId }}');
</script>
{{ end }}

{{ if $.Site.Params.googleAnalyticsTrackingId }}
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-3687044-6"></script>
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());

  gtag('config', '{{ $.Site.Params.googleAnalyticsTrackingId }}');
</script>
{{ end }}

Fix Google Analytics config option
Fix Google Analytics config option
