diff --git a/data/sri.toml b/data/sri.toml
index ccdcb961..1904fbd9 100644
--- a/data/sri.toml
+++ b/data/sri.toml
@@ -10,6 +10,7 @@
bootstrap = "sha512-iztkobsvnjKfAtTNdHkGVjAYTrrtlC7mGp/54c40wowO7LhURYl3gVzzcEqGl/qKXQltJ2HwMrdLcNUdo+N/RQ=="
isotope = "sha512-VDBOIlDbuC4VWxGJNmuFRQ0Li0SKkDpmGyuhAG5LTDLd/dJ/S0WMVxriR2Y+CyPL5gzjpN4f/6iqWVBJlht0tQ=="
jQuery = "sha512-jGsMH83oKe9asCpkOVkBnUrDDTp8wl+adkB2D+//JtlxO4SrLoJdhbOysIFQJloQFD+C4Fl1rMsQZF76JjV0eQ=="
+ autotrack = "sha512-HUmooslVKj4m6OBu0OgzjXXr+QuFYy/k7eLI5jdeEy/F4RSgMn6XRWRGkFi5IFaFgy7uFTkegp3Z0XnJf3Jq+g=="
[css]
bootstrap = "sha512-6MXa8B6uaO18Hid6blRMetEIoPqHf7Ux1tnyIQdpt9qI5OACx7C+O3IVTr98vwGnlcg0LOLa02i9Y1HpVhlfiw=="
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
index f2fac6e6..f7be44e3 100644
--- a/layouts/partials/footer.html
+++ b/layouts/partials/footer.html
@@ -18,28 +18,6 @@
{{ end }}
- {{ with .Site.GoogleAnalytics }}
-
- {{ end }}
-
{{ if $.Scratch.Get "highlight_enabled" }}
{{ $v := .Site.Params.highlight_version | default "9.9.0" }}
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index 14bb81cd..df6913f4 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -42,6 +42,23 @@
{{ end }}
+ {{ if .Site.GoogleAnalytics }}
+
+
+ {{ if not .Site.Params.disable_sri }}
+ {{ printf "" .Site.Data.sri.js.autotrack | safeHTML }}
+ {{ else }}
+
+ {{ end }}
+ {{ end }}
+