Last active
May 15, 2024 08:04
-
-
Save vwo-kb/6ee4b7503f67a5570a80a9bb022729fa to your computer and use it in GitHub Desktop.
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
| vwo.addShopifyMiddleware((payload) => { | |
| let newPayload = payload; | |
| if(payload.name == "shopify.productViewed"){ | |
| newPayload.name = "newShopifyEventName" ; | |
| } | |
| return newPayload; | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment