It’s been 6 days, I was able to upload my purchase even though it worked very well before I installed the Google & YouTube application or maybe due to another reason I don’t know. I set up Stape through the Shopify Stape app, and all events seem to work fine, including “add to cart” and “start checkout”, both in the web containers and on the server.
However, every time I try to make a purchase, the purchase event does not fire as expected. The purchase_stape doesn’t seem to be pushed. I’ve checked the configurations and scripts, but I can’t identify the problem. Has anyone else encountered this problem, or does anyone have any idea what might be causing this problem and how to fix it?
If you are not on Shopify, why are we discussing Shopify app and dataLayer? what exactly do you mean by this? The app, obviously only covers Shopify.
Go to Settings → Checkout in Shopify. If closer to the bottom of the page you have a box called 'Additional Scripts" and ability to put stuff there - you are not on extensibility. If that box doesn’t exist or is grayed out - you are on checkout extensibility and need to tick the checkbox in the app.
I expressed myself badly, I wanted to say that I didn’t have the Shopify Plus version, I have the classic version and the extension is generally used on Shopify Plus.
As you can see, we can add code on the payment page so I’m not in extensibility?
I looked and I see that all events including begin checkout and add payment info work without problems. So there should not be any problems with the purchase event in the data layer.
Yes, I made it clear that it is the “purchase” event that is not sent. Add a payment, etc. works very well. It’s at the level when we paid, the event is not sent as you can see.
Do you use any upsell apps with offers on the post purchase page?
Also, try in the plugin settings to set the checkbox to use extensibility for thank you page (in this case the event is sent to sandbox) and check again. But in this case check the data layer not in the TOP window, but select the sandbox (there can be several of them, depending on the number of customer events you have added to Shopify, some of them will have your container and purchase_stape event).
I use no incentive application, I validated the extensibility checkbox but still nothing happens, I simulated the purchase, the sendbox console disappears on the payment page. As you can see :
I haven’t come across any cases like this before. It seems to be something individual with your shop. In that case you need to make your own data layer for purchase event and use it for tracking.
I recommend using Shopify Pixel API for this: Web Pixels API
Hi there, why don’t you guys use webhooks from your payment gateway to trigger purchase? Here in Brazil we have some payment methods that sends the user out of the store domain, like pix and billet. Due that, if we let the web event purchase trigger the purchase it would be very unconscious, then we startes to use webhooks to trigger then and problem solved.
It is important that webhooks have marketing cookies, and this is very rarely available in webhooks.
Without marketing cookies, your attribution will not work very well.