This commit is contained in:
Christoffer Martinsson 2025-10-07 21:35:32 +02:00
parent ba2a2878fd
commit bd1bac5d2d

View File

@ -14,15 +14,15 @@
<link href="{{ .RelPermalink }}" rel="feed" type="{{ .MediaType.Type }}" title="{{ $.Site.Title }}" /> <link href="{{ .RelPermalink }}" rel="feed" type="{{ .MediaType.Type }}" title="{{ $.Site.Title }}" />
{{ end }} {{ end }}
{{ if site.GoogleAnalytics }} {{ with .Site.GoogleAnalytics }}
<!-- Global Site Tag (gtag.js) - Google Analytics --> <!-- Global Site Tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id={{ site.GoogleAnalytics }}"></script> <script async src="https://www.googletagmanager.com/gtag/js?id={{ . }}"></script>
<script> <script>
window.dataLayer = window.dataLayer || []; window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments)}; function gtag(){dataLayer.push(arguments)};
gtag('js', new Date()); gtag('js', new Date());
gtag('config', '{{ site.GoogleAnalytics }}'); gtag('config', '{{ . }}');
</script> </script>
{{ end }} {{ end }}
</head> </head>