Passing GCLID In Gads Offline Shopify Webhook

I have a Shopify customer with a problem that customers in the end are not paying after the purchase has been done. I’ve setup a Shopify webhook on ‘order payment’ which is more accurate for this customers.

Now I have difficulty to pass the GCLID and FBC to Google/Facebook. Looking at your instructions on Stape ReStore, looks like I should be possible doing this. My idea was:

  • Capture fbclid/gclid in first visit, store it in Stape store
  • Capture email once ‘normal’ purchase is done, add this to same profile in Stape store
  • Send Shopify Webhook which includes email, use restore to check on same email
  • Use the captured fbclid/glcid with Stape Store look up
  • Send value in Gads offline conversion tag

Should this work or would it impossible to send fbclid/gclid values in Webhooks?

Hey Michel,

Yes, this approach will work.

An alternative would also be to write cookies to the order attributes (via Shopify API after the order is created), so in webhook this would also be available.
I can also recommend using the Flow app in Shopify to build the webhook - this will avoid the hassle of mapping data on the server for standard webhook as you can create the structure of the webhook payload you need in the Flow app.