Tracking Shopify draft orders with sGTM and Stape Store: a complete guide

Written by

Luc Nugteren

Published Jul 3, 2026 comments

Why draft order tracking matters

System overview: what we're building

1. A first-party attribution store inside Stape Store

2. A lookup at payment time

3. An offline conversion tag

High-level architecture

  1. 1.
  2. 2.
  3. 3.
  4. 4.
  5. 5.
  6. 6.
  7. 7.
  8. 8.
  9. 9.

Step-by-step configuration

1. Activate Stape Store in your tagging server

Activate Stape Store inside the Stape UI.

2. Capture attribution on lead submission

{ "event": "lead_submitted", "email": "buyer@example.com", "gclid": "Cj0KCQjw...AvD_BwE" }

3. Write the attribution record to Stape Store

key: 7f3a9c...d2e1 (SHA-256 of buyer@example.com) gclid: Cj0KCQjw...AvD_BwE
The Stape Store Writer tag, storing the click ID against the hashed email.

4. Create the Lookup Variable

Input (hashed email): 7f3a9c...d2e1 Output (stored gclid): Cj0KCQjw...AvD_BwE
The Stape Store Lookup variable, retrieving the stored click ID by hashed email.

5. Receive the Shopify draft order webhook

{ "email": "buyer@example.com", "order_id": "6210938472", "value": "1499.00", "currency": "EUR" }

6. Fire the Google Ads Offline Conversion

The Google Ads offline conversions tag, using the looked-up GCLID and the real order value.

Optional: send profit instead of revenue

Firestore as an alternative

Validation and testing

Conclusion

Written by

Luc Nugteren

Content writer

Luc is a tracking specialist focused on server-side tagging and data accuracy, helping ecommerce brands and agencies build scalable measurement systems that improve attribution and performance.

Was this article helpful?

Comments

Recommended for you

Solutions

Data Store

Store and reuse first-party data in sGTM with Data Store, a built-in NoSQL database for server containers hosted on Stape.

Oct 12, 2026

Turn better tracking into better marketing performance

Try for free