Skip to content

Commit

Permalink
Add support for Netopia payment
Browse files Browse the repository at this point in the history
  • Loading branch information
srenon committed Jun 6, 2023
1 parent 7089eb7 commit cdf74e6
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
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.3",
"version": "2.7.4",
"autoload": {
"files": [
"registration.php"
Expand Down
15 changes: 15 additions & 0 deletions view/frontend/layout/netopia_payment_success.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version="1.0"?>
<!--
/**
* Copyright © MagePal LLC. All rights reserved.
* See COPYING.txt for license details.
* http://www.magepal.com | [email protected]
*/
-->
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<body>
<referenceBlock name="magepal_gtm_datalayer">
<block class="MagePal\GoogleTagManager\Block\Data\Order" name="magepal_gtm_block_order"/>
</referenceBlock>
</body>
</page>
2 changes: 1 addition & 1 deletion view/frontend/templates/js.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ $containerCode = $block->getEmbeddedCode();
(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='<?= /* @noEscape */ $dataLayerName ?>'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl<?= $containerCode ? "+'{$containerCode}'" : '' ?>;f.parentNode.insertBefore(j,f);
'https://www.googletagmanager.com/gtm.js?id='+i+dl<?= /* @noEscape */ $containerCode ? "+'{$containerCode}'" : '' ?>;f.parentNode.insertBefore(j,f);
})(window,document,'script','<?= /* @noEscape */ $dataLayerName ?>','<?= /* @noEscape */ $accountId ?>');
<?php endif; ?>
</script>
Expand Down

0 comments on commit cdf74e6

Please sign in to comment.