For discussing the development and usage of Checkout UI extensions, post-purchase extensions, web pixels, Customer Accounts UI extensions, and POS UI extensions
Hello Community!
We are currently migrating to the new checkout and we need to figure out how to install the GTM script as well as any other script that run in the checkout.
Script first: Is that even possible ? Say I have an Affirm script, or whatever.
GTM:
Using the webpixel didn't work. Window was not available. I tried following this guide: https://help.shopify.com/en/manual/promoting-marketing/pixels/custom-pixels/gtm-tutorial
This is my code:
In our case we use Segment script. We also had an issue with "window not defined" so we had to wrap our code whenever we want to use the window. Perhaps try this:
if (window.dataLayer) {
}