Install Facebook (Meta Ads) Conversion API with Server-Side GTM

Frequently Asked Questions
Common questions about "Install Facebook (Meta Ads) Conversion API with server-side GTM"
The Meta Ads Conversions API is a server-side tracking solution that sends conversion data directly from your server to Meta, providing a more reliable tracking method that's less affected by browser restrictions. Implementing it creates a redundant setup with both client-side pixel and server-side tracking, ensuring maximum data collection reliability while respecting user consent.
Use event deduplication by sending the same event ID with both tracking methods. Create an event ID variable in your client-side container, send it with your Meta Pixel events, and pass the same event ID through your server-side container to the Conversions API, allowing Meta to recognize duplicate events.
You need a server-side GTM container already set up, your Meta Pixel ID, and a Conversions API access token (generated in Meta Ads Events Manager under Data Sources > Settings > Conversions API). You should also have consent management implemented to ensure GDPR compliance.
Only send data to Meta when users have provided explicit marketing consent by using consent-based triggers in both client and server-side containers. Additionally, consider using an EU-based server-side GTM hosting solution like gdpr-server-tracking.eu to keep data processing within the EU, further strengthening your GDPR compliance position.
Use the Test Events feature in Meta Ads Events Manager, which allows you to verify both client and server events are being received. Create a lookup table variable for your test ID that only activates in debug mode to prevent accidentally publishing test IDs to production, then check if events from both sources show the same event ID.
For optimal GDPR compliance, host your server-side GTM container with an EU-based provider like gdpr-server-tracking.eu that uses EU-owned servers (such as Hetzner in Finland) rather than third-party cloud providers. This approach minimizes data transfer risks and provides additional privacy features like query parameter filtering and data hashing.
Using a lookup table variable for your test ID that checks for debug mode prevents you from accidentally publishing test IDs to production. This ensures that real user events are properly counted in your Meta Ads campaigns while still allowing you to test your implementation in preview mode.
Check the Events Manager test events view to confirm that events from both browser and server sources display the same event ID. You can use your browser's find function (Ctrl+F/Cmd+F) to search for a specific event ID and verify it appears in both the browser and server events, indicating successful deduplication.