Instances of Blank Cart Token in Purchase Webhook - Shopify

We noticed instances of purchase_webhook event coming through in sGTM with blank cart_token which breaks our further workflows for event enrichment for GA4 (client_id and ga_session_id):

this is causing many of the webhook events to be sent to GA4 without correct client_i/ga_session_id) putting them into the unassigned category.

Is it a bug in Stape’s webhook configuration (we use the webhook settings in Stape app) or is this a native Shopify webhook problem?

Has anyone seen this problem in their setup - does it make sense to configure webhooks directly in Shopify vs Stape app? Looking for some upltimately reliable option.

@Alex @Dan @jeppe_Nielsen - appreciate your thoughts guys. Thanks!

This means that this data is not available in Shopify for some reason. As the native method of sending from Shopify is used for webhooks.
This may apply to orders that were not placed online, but were added manually or have a other source.

1 Like

Thanks @Alex ! I added a parameter for cart_token to the test webhook event for ga4 to monitor this - i’ll see if that’s happening a lot - thank you very much for the insights :+1: