fixe issue with analytics and new hugo update

This commit is contained in:
Nuno Coração
2023-05-24 22:43:31 +01:00
parent b64e7fc6d5
commit 2b3b34fab9
458 changed files with 17527 additions and 2592 deletions
+10
View File
@@ -0,0 +1,10 @@
{{ if site.Config.Services.GoogleAnalytics.ID }}
<script async src="https://www.googletagmanager.com/gtag/js?id={{ site.Config.Services.GoogleAnalytics.ID }}"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', '{{ site.Config.Services.GoogleAnalytics.ID }}');
</script>
{{ end }}