Shopify Checkouts and GA4/DataLayer Help

Hey (maybe @Dan) but others welcome,

Wondering how everyone is dealing with Shopify Checkout?

so we have data client and google, the google events in server are firing off GA4, with conversion linker.

but when it comes to checkout, we can’t seem to get the event and send to GTMserver.

See below reply for some more detail.

so I did a bit of digging on this (watching the webinar).

in checkout I am seeing the events, but i am not seeing the events in GTMserver, I feel like I am missing something here.

Server begin Checkout

Trigger Config (GTMweb)

Event Begin Checkout (GTMweb)

Trigger (GTMserver)

Have you submitted your web GTM container? In shopify checkout, tag don’t fire if you don’t submit the changed in web GTM.

Also I’d recommend you to set event parameters manually instead of using ‘Send Ecommerce Data’ option. You can use it if your datalayer schema is following GA4 schema. Personally I set up event parameters manually.

what do you mean submitted?

I mean there are events catching the stape events (if thats what you mean)?

its only a google issue, TBH i think it is a consent issue as i dont have cookies to pull against.

Due to Shopify sandbox limitations, the preview doesn’t work there, you can’t view the tagging work there. So the only option is to publish a web container and check in network whether your events are sent to your sGTM subdomain.
A bit more is described here: How to use the Stape app for setting up Shopify server-side tagging

If you see that a GA event works but is not sent to the sGTM but directly to the GA this is usually one of two reasons:
а) GA4 event tag triggers before google tag, so the problem is in the triggers.

b) gtag is announced several times (e.g. via Google app in Shopify). This causes the gtag settings you have in GTM to be overwritten.

Hey @Alex

just had a quick look at that. to be honest, we dont even see a sgtm in the network at all?

we dont have the google app at all (we have. a PIM managing product feed for markets), so can’t be that.

how would you diagnose this when you cant see the events in checkout?

just had a quick look at that. to be honest, we dont even see a sgtm in the network at all?

Have you added a script from the Stape app to customer events on Shopify?
Do you have GTM inserted via Stape app?

Can you please provide a link to the site in question?

Hey,

It’s LunaRae.com.

Network correspondence look ok from what I can tell and yes both the app and script is installed

Everything seems to be working. There is a data layer that generates the Stape application (begin_checkout_stape):

And also in network you can see the events:

Hey @Alex

Thanks, we did some modification on it last week.

Effectively I think it was an issue with consent in checkout, so we rolled to a new CMP that uses shopify consent API and then used the new consent option in the app, which seems to have done the trick.