diff --git a/layouts/partials/cookie_consent.html b/layouts/partials/cookie_consent.html
index 71bac06b2..1dd0a2dc6 100644
--- a/layouts/partials/cookie_consent.html
+++ b/layouts/partials/cookie_consent.html
@@ -1,4 +1,5 @@
{{ if .Site.Params.privacy_pack }}
+{{ $scr := .Scratch }}
-{{ end }}
+{{ end }}
\ No newline at end of file