
In shortA complete walkthrough of server-side tracking for a Shopify store: GA4 and the Meta (Facebook) Conversions API sent through Google Tag Manager and Stape, from your own subdomain. It covers the containers, the Stape Shopify app (data layer, custom pixel, webhooks, Cookie Keeper), testing and publishing.
Chapters
What you need before you start
- Shopify access: orders, store settings, theme code, customer events and app installs
- Admin access to Google Tag Manager at the account level
- A Stape account
- Access to your DNS manager
Steps covered in the video
- Create a server-side GTM container and copy its config into a new Stape container.
- Create a custom domain and map it in your DNS manager.
- Import the website container template and set your GA4 Measurement ID and server URL.
- Install and configure the Stape app: custom domain, custom loader, Cookie Keeper, ecommerce data layer, custom pixel and webhooks to the server container.
- Check the app embed is on in your theme.
- Import the server container template.
- Test, publish and run a final test.
Common questions
Why send Shopify purchases through webhooks too?
Webhooks come from Shopify's servers, so the purchase is recorded even when the browser blocks scripts or closes the thank-you page early.
Resources
Recorded in January 2025. Some screens may look different today.
Related videos
7:14The Google Tag Manager setup I recommend for international ecommerce
Eight building blocks for stores that sell in several countries.
October 2024
5:27The KPIs I recommend for international ecommerce (Shopify and WooCommerce)
One dashboard for several stores: CAC, AOV, ROAS and new-customer numbers.
April 2025
1:35Conversion tracking tier list: where does your setup rank?
Rank your tracking from E to SS in 90 seconds. Most accounts land at a C.
October 2026