From b1417bc5ac3ebd6d9c8cc3310b56044fd0a87221 Mon Sep 17 00:00:00 2001 From: Taoufiq Ait Ali Date: Wed, 20 Nov 2024 16:49:24 +0100 Subject: [PATCH] fix issue with multiple GTM IDs this do not take on consideration the use of multiple ids --- view/frontend/templates/script.phtml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/view/frontend/templates/script.phtml b/view/frontend/templates/script.phtml index 5de5e03..39bfc2e 100644 --- a/view/frontend/templates/script.phtml +++ b/view/frontend/templates/script.phtml @@ -32,7 +32,7 @@ $events = ($config->waitForUserInteraction() === false) j.async = true; j.src = 'getGoogleTagmanagerUrl() ?>' + '/gtm.js?id=' + i + dl; f.parentNode.insertBefore(j, f); - })(window, document, 'script', 'dataLayer', 'getId() ?>'); + })(window, document, 'script', 'dataLayer', ''); }