Skip to content

Commit 24b1bf9

Browse files
author
Sandeep Singh
authored
Merge pull request #209 from alphagov/GOVSI-128-remove-data-layer
Remove GTM datalayer as requested
2 parents 0aea293 + 19e623e commit 24b1bf9

1 file changed

Lines changed: 1 addition & 12 deletions

File tree

src/assets/javascript/cookies.js

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -134,18 +134,7 @@ var cookies = function (trackingId) {
134134
}
135135

136136
function initGtm() {
137-
window.dataLayer = [
138-
{
139-
"gtm.allowlist": ["google"],
140-
"gtm.blocklist": [
141-
"nonGoogleScripts",
142-
"nonGoogleIframes",
143-
"nonGooglePixels",
144-
"customScripts",
145-
"customPixels",
146-
],
147-
},
148-
];
137+
window.dataLayer = window.dataLayer || [];
149138

150139
function gtag() {
151140
dataLayer.push(arguments);

0 commit comments

Comments
 (0)