Update extended_head.html

This commit is contained in:
Paul Maddern
2024-03-15 18:52:59 +00:00
committed by GitHub
parent ce4bafd6a7
commit aab58c7d7b

View File

@@ -42,16 +42,5 @@
<!-- Google Analytics --> <!-- Google Analytics -->
{{ if eq (getenv "HUGO_ENV") "production"}} {{ if eq (getenv "HUGO_ENV") "production"}}
{{ with .Site.GoogleAnalytics }} {{ template "_internal/google_analytics.html" . }}
<script async src="https://www.googletagmanager.com/gtag/js?id={{ . }}"></script>
<script>
if (navigator.doNotTrack !== '1') {
window.dataLayer = window.dataLayer || [];
function gtag() { dataLayer.push(arguments); }
gtag('js', new Date());
gtag('config', '{{ . }}');
}
</script>
{{ end }}
{{ end }} {{ end }}