Video tutorial · Shopify and ecommerce

Shopify: set up GA4 server-side and the Meta Conversions API with GTM and Stape

29 minJanuary 2025By John BernalWatch on YouTube
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

Steps covered in the video

  1. Create a server-side GTM container and copy its config into a new Stape container.
  2. Create a custom domain and map it in your DNS manager.
  3. Import the website container template and set your GA4 Measurement ID and server URL.
  4. Install and configure the Stape app: custom domain, custom loader, Cookie Keeper, ecommerce data layer, custom pixel and webhooks to the server container.
  5. Check the app embed is on in your theme.
  6. Import the server container template.
  7. 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.

JB
John Bernal

Tracking and analytics consultant with 10+ years setting up GA4, Google Tag Manager, server-side tracking and ad platform conversions. Stape partner, Top Rated Plus on Upwork. About AnalyticsEngine

Related videos

Rather have someone set it up and keep it working?

Tracking & Analytics Ops is $500 a month per website. I set up your tracking, check it every day, fix what breaks and answer your analytics questions. AI does the daily checks; I make every decision.