We’re trying to help a client with a Shopify store filter out draft B2B orders from sending to ad platforms like Meta. They are currently using the native Shopify FB+IG app for tracking.
We want to use the Stape Conversion Tracking app and purchase webhooks as a solution, to use the “source_name” parameter to filter out orders with a value of “shopify_draft_order”.
But the app does not pass that parameter, event though the native Shopify webhook does.
Any ideas on how to filter the draft orders within Stape’s app’s setup, considering that isn’t present?
The source_name parameter is present in the webhook payload sent by the Stape Conversion Tracking app. For orders placed through the online store, it is “source_name”: “web”, while for draft orders it is “source_name”: “shopify_draft_order”.
You can use this parameter to apply your filtering logic.
I did notice that source_name is missing from the test webhook payload. However, it is included in the payload of actual (non-test) webhooks.