Skip to content

Commit c2ab6dc

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

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
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.6",
47+
"version": "2.7.7",
4848
"autoload": {
4949
"files": [
5050
"registration.php"

view/frontend/templates/js.phtml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ $containerCode = $block->getEmbeddedCode();
2626
</script>
2727

2828
<?php if ($block->isAdvancedSettingsEnabled()): ?>
29+
<script type="text/javascript">
2930
<?= /* @noEscape */ $block->getDataLayerJs() ?>
31+
</script>
3032
<?= /* @noEscape */ $block->getAdvancedSettingsJsCode() ?>
3133
<?php endif; ?>
3234

0 commit comments

Comments
 (0)