Created
February 15, 2021 06:19
-
-
Save saegeullee/b7577e737c0b8dfe63c9f3d45b4917b6 to your computer and use it in GitHub Desktop.
tagmanager3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function purchaseFunc() { | |
| // ... purchase logic ... | |
| const purchaseTag = { | |
| dataLayer: { | |
| event: 'purchase', | |
| name: data.orderName, | |
| price: data.totalPaymentPrice, | |
| ... | |
| }, | |
| }; | |
| TagManager.dataLayer(purchaseTag); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment