2018-12-09 10:48:38 +01:00
|
|
|
{{ if site.google_analytics_id }}
|
2018-12-09 08:21:01 +01:00
|
|
|
<!-- Global site tag (gtag.js) - Google Analytics -->
|
2018-12-09 10:48:38 +01:00
|
|
|
<script async src="https://www.googletagmanager.com/gtag/js?id={{ site.google_analytics_id }}"></script>
|
2018-12-09 08:21:01 +01:00
|
|
|
<script>
|
|
|
|
window.dataLayer = window.dataLayer || [];
|
|
|
|
function gtag(){dataLayer.push(arguments);}
|
|
|
|
gtag('js', new Date());
|
|
|
|
|
2018-12-09 10:48:38 +01:00
|
|
|
gtag('config', '{{ site.google_analytics_id }}');
|
2018-12-09 08:21:01 +01:00
|
|
|
</script>
|
|
|
|
{{ end }}
|