From c3bbe2f7d0c916f9819b0c5b335b18cc9135dd29 Mon Sep 17 00:00:00 2001 From: Peter Hudec Date: Thu, 18 Jul 2024 10:56:57 +0100 Subject: [PATCH 01/11] Wrap dataLayer.push behind a gtag function --- src/apps/__export-wins-review/view.njk | 1 + .../_includes/google-tag-manager-snippet.njk | 17 +++++++++++++++-- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/src/apps/__export-wins-review/view.njk b/src/apps/__export-wins-review/view.njk index 1375fe88064..33d71549d04 100644 --- a/src/apps/__export-wins-review/view.njk +++ b/src/apps/__export-wins-review/view.njk @@ -14,6 +14,7 @@ padding: 0; } + {% include "_includes/google-tag-manager-snippet.njk" %} {% include "_includes/csp-nonce.njk" %} diff --git a/src/templates/_includes/google-tag-manager-snippet.njk b/src/templates/_includes/google-tag-manager-snippet.njk index f2854dfcb2c..57f24043e2c 100644 --- a/src/templates/_includes/google-tag-manager-snippet.njk +++ b/src/templates/_includes/google-tag-manager-snippet.njk @@ -1,16 +1,29 @@ {% if GOOGLE_TAG_MANAGER_KEY %}