Logo of TAGGRS, written in blue and with a small favicon
HomeServer-side TrackingMeta CAPI Gateway
Introduction
Get started
Get started with TAGGRSSet up Google Tag ManagerAdd the GTM Data LayerConfigure GTM transformationsTest the setupDebuggingAnalytics dashboard
Migrate from Google CloudMigrate from hosting
Shortcuts
GTM Copy PasteReady-made templates
GA4 Server-side Tracking
Setup in GTMCreate GA4 Event TagsGA4 tag setup in server containerE-commerce events in GTM
Google Ads Server-side Tracking
Install Conversion LinkerSet up Conversion TrackingConfigure Enhanced ConversionsDeploy Remarketing Tags
Facebook Server-side Tracking
Set Meta PixelImprove your EMQ ScoreInstall Meta CAPIMeta Events Deduplication
LinkedIn Server-side Tracking
Install LinkedIn Insight TagSet up LinkedIn CAPILinkedIn Events Deduplication
TikTok Server-side Tracking
Set up TikTok PixelInstall TikTok Events APITikTok Events Deduplication
Pinterest Server-side Tracking
Set up Pinterest TagConfigure Pinterest Conversions APIPinterest Events Deduplication
Snapchat Server-side Tracking
Set up Snap PixelSnapchat Conversions APISnapchat Events Deduplication
TAGGRS Tracking Tags and Tools
Tracking TagsGoogle Service Account integrationsGTM LogsProfit TrackingData Enricher ToolWebhooks TesterEnhanced Tracking ScriptMulti Domain ToolClick ID RecoveryConsent Tool
Configurations
Billy Grace Server-side TrackingLeadPages Server-side TrackingPiwik PRO Server-side TrackingCDN Server-side TrackingShopify Server-side TrackingActiveCampaign Server-side TrackingKlaviyo Server-side TrackingSpectacle Server-side Tracking
Server-side Tracking for e-commerce
Shopify Data LayerShopware Data LayerMagento Data LayerWooCommerce Data LayerPrestashop Data LayerLightspeed Data Layer
Consent Management server-side
Activate Consent ModeConfigure TAGGRS with Axeptio

Install Meta Conversions API

In this guide, you'll find a comprehensive walkthrough for implementing Meta's Conversions API (CAPI) using Google Tag Manager's server container and TAGGRS. With CAPI, you capture critical events (like purchases, sign-ups, and leads) directly from your server, complementing browser-based Pixel data to create a complete, deduplicated view of user actions for optimized ad targeting and attribution.

Prerequisites

Before starting the implementation of the Meta CAPI, ensure you have the following requirements:

• TAGGRS Setup: Ensure your TAGGRS server container is deployed. You can follow our implementation guide to have it done easily.

• API Access token: Generate in Meta Events Manager under Conversions API → Settings.

• Pixel ID: Locate in Meta Events Manager under Data Sources.

• Data Layer Configuration: Ensure your website sends data to the server GTM container via GA4.

Install Facebook Conversions API template

  1. In your server container,

    go to Templates and select Search Gallery.

  2. Search for

    Facebook Conversion API from stape and click Add to workspace.

Facebook screen where to install the Facebook Conversions API template built by Stape
Logo of TAGGRS Server-side Tracking: a light blue circle with two blue angle brackets
Expert Tip
The stape template offers more advanced features than the official Meta template, including enhanced user data handling, consent management, and BigQuery logging capabilities.

Create the Facebook Conversions API tag

Create a new tag in your server container and select Facebook Conversions API as the tag type.
Configure the essential settings:

Event name setup method

Choose between the following 2 options.

• Inherit from client: Automatically matches GA4 events to Meta standard events
• Override: 
Gives you full control over event configuration and payload customization

Action source

‍Set to Website for web-based conversions.

API access token

Enter your access token or use a variable like {{Meta Access Token}}.

Facebook Pixel ID

Enter your Pixel ID or use a variable like {{Meta Pixel ID}}.

How to create a new tag in your server container and select Facebook Conversions API as the tag type and configure its essential settings

Advanced configuration options

Cookie settings

Check Generate _fbp cookie if it not exist for better event matching.

If you select Generate _fbp cookie if it not exist allow you to get better event matching when installing Facebook Conversions API

Data enhancement

Set up User Data and Custom Data sections for enhanced tracking.

Setting up User data and Custom data while installing Facebook Conversions API for enhanced tracking

Map data layer variables

The Stape template automatically handles most data mapping, but you can enhance it with custom variables:

Variable type

Variable name

Purpose

Data Layer Variable

Event Name

Maps to event_name from client

Data Layer Variable

Transaction ID

Maps to ecommerce.transaction_id

Data Layer Variable

Purchase Value

Maps to ecommerce.value

Data Layer Variable

Currency

Maps to ecommerce.currency

Data Layer Variable

User Email

Maps to user_data.email_address

Data Layer Variable

User Phone

Maps to user_data.phone_number

Logo of TAGGRS Server-side Tracking: a light blue circle with two blue angle brackets
Expert Tip
The template we used automatically hashes PII data and handles data normalization, eliminating the need for manual SHA256 hashing configurations.

Configure trigger

Create a Custom trigger that fires when your data client processes events. Set the trigger condition:

  • Client Name equals the name of your GA4 client
The client name is the name of your client in GA4

The stape template automatically maps common GA4 events to Meta standard events:

purchase → Purchase
add_to_cart → AddToCart
begin_checkout → InitiateCheckout
page_view → PageView

Advanced features configuration

Consent management

Enable Consent Settings if using consent management:

• Configure to send data only when marketing consent is granted.
• Ensure your web container passes consent status to the server container.

Select Send data in case marketing consent given to better manage user consent while installing Facebook CAPI

Event deduplication

The template handles automatic event deduplication when configured with matching event IDs between client-side and server-side implementations.

Logo of TAGGRS Server-side Tracking: a light blue circle with two blue angle brackets
Expert Tip
Use the client-side Event ID template and configure custom Event ID variables to ensure proper deduplication between Pixel and CAPI events.
How to set the event_id in Facebook Conversions API

Test and validate

Use GTM Preview Mode for both web and server containers simultaneously. Navigate to your website and trigger test events. Check the GTM Server Debug panel to verify:

• The CAPI tag fires successfully
• HTTP requests are sent to graph.facebook.com in POST - 200.
Overview of the tag details of your Facebook CAPI

Useful resources

Facebook white logo
Read the full manual on Facebook Server-side Tracking
icon of a white upward arrow
icon of a white thunder used by TAGGRS to visually introduce Server-side Tracking
Start for free with Server-side Tracking
icon of a white upward arrow
White silhouette of a person used as icon for the support call to action
Get expert support
icon of a white upward arrow
Previous
Meta Event Match Quality Score
Next
Prevent duplicate Meta events
DOCUMENTATION V1.3
Copyright © 2025 TAGGRS. All right reserved.
TABLE OF CONTENTS
PrerequisitesInstall Facebook Conversions API templateCreate the Facebook Conversions API tagAdvanced configuration optionsMap data layer variablesConfigure triggerAdvanced features configurationTest and validateUseful resources