Facebook Conversions API Tag for Google Tag Manager Server Container

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.

just testing some things

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

:green_circle: Listed