Meta CAPI for Magento 2 via server GTM

Written by

Uliana Lesiv

Updated Jul 28, 2026 comments

Step 1. Configure server Google Tag Manager container

set up server gm
set up server gm
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 

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

Step 3. Configure Stape Conversion Tracking integration for Magento 2

Magento 2 Marketplace
Magento 2 account
Magento 2 account
Magento 2 account
Data Layer section

Step 4. Download and Import container templates from our GitHub

Download
GTM templates for magento 2
GTM templates for magento 2
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

Uliana Lesiv

Content writer

Uliana is a Content Manager at Stape, specializing in analytics and integration setups. She breaks down complex tracking concepts into clear insights, helping businesses optimize data collection.

Was this article helpful?

Comments

Recommended for you

Turn better tracking into better marketing performance

Try for free