Meta CAPI for Shopify via server GTM

Written by

Ivanna Holubovska

Updated Jul 27, 2026 comments

Step 1. Configure server Google Tag Manager container

Set up server GTM
Set up server GTM
Set up server GTM
Log in or sign up to access Stape
Log in or sign up to access Stape
New container
Stape pricing plans
Running container on Stape

Step 2. Set up Custom Loader in Stape admin

Find and copy your WEB GTM ID in GTM 
sGTM containers
Power-ups section in Stape account
Custom Loader and click Generate

Step 3. Configure Stape's Conversion Tracking App for Shopify

Before you begin

How to set up the app

  1. 1.
  2. 2.
  3. 3.
Install

General

  1. 1.
General

Data Layer

  1. 1.
Data layer

Webhooks

  1. 1.

Note:

Webhooks

Customer Match

  1. 1.
Customer match

Testing

"Network" tab in browser console
Events in the web GTM Preview mode
Inserting the snippet on the checkout page manually
Checkout page events in the web GTM Preview mode

Step 4. Download and Import container templates from our GitHub

GTM templates for Shopify
GTM templates for Shopify
GTM templates for Shopify
Select Overwrite or Merge

Step 5. Сonfigure GTM container templates

Web Сonfigure GTM container templates
Server Сonfigure GTM container templates
Proper values for variables
Pixel ID and API token
Pixel ID and API token
Add a preview URL in your server container

Step 6. Test the setup

test_event_code
Look up table variable
 Facebook Test Event page

Want to start on the server side?

Try for free

Written by

Ivanna Holubovska

Content writer

Ivanna is a Lead Content Manager at Stape and a certified author on Clutch and KyivPost. She writes high-quality content on server-side tracking to help businesses optimize strategies and analytics.

Was this article helpful?

Comments

Recommended for you

Solutions

Stape Conversion Tracking app for Shopify

Easily add GTM to Shopify & improve tracking! The Stape Conversion Tracking app offers Cookie Keeper, dataLayer events, webhooks, and custom domain support.

Oct 28, 2026

Turn better tracking into better marketing performance

Try for free