From 57aab275f1ad68789317770c634df8da5ec6b142 Mon Sep 17 00:00:00 2001 From: dlopezvsr Date: Mon, 26 Aug 2024 13:13:47 -0600 Subject: [PATCH 1/3] Replace GTM ID --- network-api/networkapi/templates/pages/base.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/network-api/networkapi/templates/pages/base.html b/network-api/networkapi/templates/pages/base.html index 57f4269f1ac..e9c78cc567c 100644 --- a/network-api/networkapi/templates/pages/base.html +++ b/network-api/networkapi/templates/pages/base.html @@ -40,12 +40,12 @@ {% block ga_identifier %} - + + j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= + 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); + })(window,document,'script','dataLayer','GTM-PQQ8H6PM'); {% endblock %} {% block fundraiseup_script %} From 0a0bed67635eb0d5a8519669ecf8baff2d7f435a Mon Sep 17 00:00:00 2001 From: dlopezvsr Date: Mon, 26 Aug 2024 14:46:22 -0600 Subject: [PATCH 2/3] Comment regarding container id added | GTM ID updated in mozfest base --- .../mozfest/templates/mozfest/mozfest-base.html | 11 ++++++----- network-api/networkapi/templates/pages/base.html | 1 + 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/network-api/networkapi/mozfest/templates/mozfest/mozfest-base.html b/network-api/networkapi/mozfest/templates/mozfest/mozfest-base.html index 34bf2458294..cffde75cf1f 100644 --- a/network-api/networkapi/mozfest/templates/mozfest/mozfest-base.html +++ b/network-api/networkapi/mozfest/templates/mozfest/mozfest-base.html @@ -10,12 +10,13 @@ {% block ga_identifier %} - + + + new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], + j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= + 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); + })(window,document,'script','dataLayer','GTM-PQQ8H6PM'); {% endblock %} diff --git a/network-api/networkapi/templates/pages/base.html b/network-api/networkapi/templates/pages/base.html index e9c78cc567c..6003f7cbe8b 100644 --- a/network-api/networkapi/templates/pages/base.html +++ b/network-api/networkapi/templates/pages/base.html @@ -40,6 +40,7 @@ {% block ga_identifier %} + + new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], + j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= + 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); + })(window,document,'script','dataLayer','GTM-PQQ8H6PM'); {% endblock %} diff --git a/network-api/networkapi/templates/pages/base.html b/network-api/networkapi/templates/pages/base.html index 6003f7cbe8b..998edb9ecb0 100644 --- a/network-api/networkapi/templates/pages/base.html +++ b/network-api/networkapi/templates/pages/base.html @@ -44,9 +44,9 @@ + j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= + 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); + })(window,document,'script','dataLayer','GTM-PQQ8H6PM'); {% endblock %} {% block fundraiseup_script %}