From bf6f1d14b4c3678b331e42f17bb6a440d17124e9 Mon Sep 17 00:00:00 2001 From: Renon Stewart Date: Wed, 3 Apr 2024 13:53:04 -0400 Subject: [PATCH] Fix datalayer bug with using Custom Domain --- composer.json | 2 +- view/frontend/templates/js.phtml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/composer.json b/composer.json index a29a3a7..9dcd9e7 100755 --- a/composer.json +++ b/composer.json @@ -44,7 +44,7 @@ "magepal/magento2-google-analytics4": "Prepare for the future with Google Analytics 4. Learn more at https://www.magepal.com/google-analytics-4-for-google-tag-manager.html" }, "type": "magento2-module", - "version": "2.7.5", + "version": "2.7.6", "autoload": { "files": [ "registration.php" diff --git a/view/frontend/templates/js.phtml b/view/frontend/templates/js.phtml index 9301ab6..06456e9 100755 --- a/view/frontend/templates/js.phtml +++ b/view/frontend/templates/js.phtml @@ -26,6 +26,7 @@ $containerCode = $block->getEmbeddedCode(); isAdvancedSettingsEnabled()): ?> + getDataLayerJs() ?> getAdvancedSettingsJsCode() ?>