Dan
April 14, 2026, 12:44pm
1
You can use this tag for the Google Tag Manager Server Side container to set up Facebook Conversion API.
It works based on Universal Analytics or Google Analytics 4 requests inside the Google Tag Manager Server Side container. Also, it supports custom Data client that allows retrieving Data Layer from web containers easier.
Facebook Conversion API (previously Facebook server-side tracking) has the same purpose as Facebook pixel - it tracks what users are doing on your site. But the difference between web and server tracking is that pixel requests are processed in the user’s browser, while Facebook conversion API works through the cloud server.
Where to find
How to use Facebook tag
Open Source
The Facebook Tag for GTM Server Side is developed and maintained by Stape Team under the Apache 2.0 license.
stape-io/facebook-tag — updated: view commit
Added “Inherit from client” event name mapping with default mappings from GA4 to Conversion API event names
Swapped positions of Facebook Pixel ID and API Access Token fields and updated their help texts
Introduced multiple automap options for Server Event Data, User Data, App Data, and Custom Data with configurable defaults
Added “Use App Secret Proof” option in More Settings to support secure API calls requiring appsecret_proof
Refactored event mapping, cookie handling, and post body construction for better modularity and accuracy
GTM Gallery Status
Listed
stape-io/facebook-tag — updated: view commit
Remove all logging functionality, including console and BigQuery logging options
Simplify HTTP request handling by moving request logic to a separate sendRequests function without logging
Rename setCookies function to setIDsCookies to better reflect its purpose
Remove all BigQuery log configuration parameters and related UI groups
Remove trace-id header usage in logging and related client annotations
GTM Gallery Status
Listed
stape-io/facebook-tag — updated: view commit
Corrected the _fbp cookie generation checkbox text
Added options to map item data to Contents, Content IDs, or both
Updated Meta API version to 26.0 and partner agent version to 2.1.5
GTM Gallery Status
Listed
stape-io/facebook-tag — updated: view commit
Set event name selection defaults to inherit and standard, with required validation for event name fields
Improved event name handling: inherited events use Facebook mappings, while invalid or incomplete overrides fall back to the incoming event name
GTM Gallery Status
Listed
stape-io/facebook-tag — updated: view commit
Updated the partner agent string to stape-gtmss-2.1.6 (including the Event Enhancement suffix when enabled)
GTM Gallery Status
Listed
stape-io/facebook-tag — updated: view commit
Updated the partner agent version to stape-gtmss-2.1.7
Improved fbclid handling to validate values before creating or replacing the _fbc identifier
Apply event enhancement only when enabled and sanitize invalid mapped payload values
Improved ecommerce data handling with numeric validation, content filtering, and reliable Purchase value/currency defaults
Added safer validation for required event fields and enhanced user data, including finite-number handling and type checks
GTM Gallery Status
Listed