Setting up webhooks via the Shopify Flow app

Written by

Vlad Kononov

Updated Sep 9, 2026 comments

Why Shopify Flow?

How to configure webhooks in the Shopify Flow

Step 1: Create your Flow with a trigger

Step 2: Apply the “Wait” action

The “Wait” action

Step 3: Create a condition

Condition illustration

Step 4: Send a webhook to the sGTM container in the Shopify Flow

Send HTTP request
{ "event": "recurring_order_paid", "user_id": "{{order.customer.id | split: '/' | last}}", "ecommerce": { "transaction_id": "{{order.name}}", "order_id": "{{order.id | split: '/' | last}}", "currency": "{{order.presentmentCurrencyCode}}", "value": {{order.totalPriceSet.presentmentMoney.amount}}, "tax": {{order.totalTaxSet.presentmentMoney.amount}}, "coupon": "{{order.discountCode}}", "shipping": {{order.totalShippingPriceSet.presentmentMoney.amount}}, "items": [ {% for lineItems_item in order.lineItems %} { "item_id": "{{lineItems_item.product.id | split: '/' | last}}", "item_name": "{{lineItems_item.product.title}}", "item_brand": "{{lineItems_item.vendor}}", "price": "{{lineItems_item.variant.price}}", "quantity": "{{lineItems_item.quantity}}", "item_sku": "{{lineItems_item.sku}}" }{% unless forloop.last %}, {% endunless -%} {% endfor %} ] } }

Step 5: Test/Debug your setup

Conclusion

Want to start using server-side tags?

Stape has lots of tags for server GTM! Click on Try for free to register and check them all.

Try for free

Written by

Vlad Kononov

Content writer

Vlad, a Tracking & Measurement specialist, excels in GTM and sGTM. He helps businesses ensure accurate data collection, seamless integration, and optimized measurement strategies.

Was this article helpful?

Comments

Recommended for you

Blog

Meta CAPI for Shopify via server GTM

Learn how to set up Facebook Conversions API for Shopify using Stape’s app. Step-by-step guide covering configuration, triggers, and verification.

Jul 27, 2026

Turn better tracking into better marketing performance

Try for free