Meta CAPI for a custom website via server GTM

Written by

Ivanna Holubovska

Updated Jul 27, 2026 comments

Step 1. Configure server Google Tag Manager container.

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

Step 2. Configure Custom Loader in the Stape admin panel.

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

Step 3. Create the Data Layer.

Step 4. Download and import the container templates available on our GitHub.

GTM templates for a custom website
GTM templates for a custom website
GTM templates for Shopify
Tagging setup

Step 5. Set up the GTM container templates.

Сonfigure web GTM container templates
Сonfigure server GTM container templates
Set proper values for variables
Pixel ID and API token
Pixel ID and API token
Add a preview URL in your server container

Step 6. Verify the setup.

test_event_code
Lookup 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

Turn better tracking into better marketing performance

Try for free