Skip to content

Commit

Permalink
Fix datalayer bug with using Custom Domain
Browse files Browse the repository at this point in the history
  • Loading branch information
srenon committed Apr 17, 2024
1 parent bf6f1d1 commit c2ab6dc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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.6",
"version": "2.7.7",
"autoload": {
"files": [
"registration.php"
Expand Down
2 changes: 2 additions & 0 deletions view/frontend/templates/js.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ $containerCode = $block->getEmbeddedCode();
</script>

<?php if ($block->isAdvancedSettingsEnabled()): ?>
<script type="text/javascript">
<?= /* @noEscape */ $block->getDataLayerJs() ?>
</script>
<?= /* @noEscape */ $block->getAdvancedSettingsJsCode() ?>
<?php endif; ?>

Expand Down

0 comments on commit c2ab6dc

Please sign in to comment.