Skip to content

Commit 56b6fdd

Browse files
committed
Move logout event to onload event via XML layout handle customer_account_logoutsuccess
1 parent 0674b7d commit 56b6fdd

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?xml version="1.0"?>
2+
<!--
3+
/**
4+
* GoogleTagManager2 plugin for Magento
5+
*
6+
* @author Yireo (https://www.yireo.com/)
7+
* @copyright Copyright 2022 Yireo (https://www.yireo.com/)
8+
* @license Open Source License (OSL v3)
9+
*/
10+
-->
11+
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
12+
xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
13+
<body>
14+
<referenceBlock name="yireo_googletagmanager2.data-layer">
15+
<arguments>
16+
<argument name="data_layer_events" xsi:type="array">
17+
<item name="logout" xsi:type="object">Yireo\GoogleTagManager2\DataLayer\Event\Logout</item>
18+
</argument>
19+
</arguments>
20+
</referenceBlock>
21+
</body>
22+
</page>

0 commit comments

Comments
 (0)