From e7e8344a512c12c02bd7bc8875067af8f737069a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Linh=20T=2E=20T=C3=B4?=
<31973230+linhtto@users.noreply.github.com>
Date: Mon, 5 Sep 2022 20:13:27 -0400
Subject: Use new Google Analytics template to accommodate both GA4 and GS3 in
header (#341)
---
layouts/404.html | 2 ++
layouts/partials/footer/scripts.html | 2 --
layouts/partials/head/metadata.html | 3 +++
3 files changed, 5 insertions(+), 2 deletions(-)
(limited to 'layouts')
diff --git a/layouts/404.html b/layouts/404.html
index a4f98ab..9c04cf4 100644
--- a/layouts/404.html
+++ b/layouts/404.html
@@ -1,3 +1,5 @@
+{{ partial "head/metadata.html" . }}
+
{{ define "title" }}
{{ i18n "404_title" . }}
{{ end }}
diff --git a/layouts/partials/footer/scripts.html b/layouts/partials/footer/scripts.html
index f4dc641..bdf93a9 100644
--- a/layouts/partials/footer/scripts.html
+++ b/layouts/partials/footer/scripts.html
@@ -3,8 +3,6 @@
{{ $scripts := slice $jQuery $index | resources.Concat "js/bundle.js" | fingerprint }}
-{{ template "_internal/google_analytics_async.html" . }}
-
{{ range .Site.Params.customJS -}}
{{ $script := resources.Get . | minify }}
diff --git a/layouts/partials/head/metadata.html b/layouts/partials/head/metadata.html
index fc624d2..74efa54 100644
--- a/layouts/partials/head/metadata.html
+++ b/layouts/partials/head/metadata.html
@@ -1,3 +1,6 @@
+{{ template "_internal/google_analytics.html" . }}
+
+
--
cgit v1.2.3