Skip to content

Commit bf6f1d1

Browse files
committed
Fix datalayer bug with using Custom Domain
1 parent 13b84b6 commit bf6f1d1

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
"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"
4545
},
4646
"type": "magento2-module",
47-
"version": "2.7.5",
47+
"version": "2.7.6",
4848
"autoload": {
4949
"files": [
5050
"registration.php"

view/frontend/templates/js.phtml

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ $containerCode = $block->getEmbeddedCode();
2626
</script>
2727

2828
<?php if ($block->isAdvancedSettingsEnabled()): ?>
29+
<?= /* @noEscape */ $block->getDataLayerJs() ?>
2930
<?= /* @noEscape */ $block->getAdvancedSettingsJsCode() ?>
3031
<?php endif; ?>
3132

0 commit comments

Comments
 (0)