Skip to main content
Send Hardal analytics data to Meta Conversions API using server-side Google Tag Manager for improved ad optimization and measurement accuracy.
Make sure to check the partner’s website and API documentation for the most up-to-date information and configurations.
1

Set Up Server-Side GTM

Complete the Server-side Google Tag Manager setup first.
2

Configure Meta Browser & Click IDs

In your web container, create User-Defined Variables:
  • Meta Browser ID: 1st-Party Cookie with name _fbp
  • Meta Click ID: 1st-Party Cookie with name _fbc
Add these to your GA4 Configuration tag as custom fields:
  • x-fb-ck-fbp: Meta Browser ID variable
  • x-fb-ck-fbc: Meta Click ID variable
3

Set Up User Data Variables

Create Data Layer Variables for user matching:
  • Email: eventModel.user_data.email_address
  • Phone: eventModel.user_data.phone_number
  • First Name: eventModel.user_data.address.first_name
  • Last Name: eventModel.user_data.address.last_name
4

Add Meta CAPI Tag

  1. In server container, search Community Template Gallery for “Meta Conversions API”
  2. Configure with your Meta Pixel ID and Access Token
  3. Map user data variables for enhanced matching
  4. Enable automatic event deduplication
5

Create Event Triggers

Set up triggers for Meta standard events:
  • PageView → page_view
  • Purchase → purchase
  • AddToCart → add_to_cart
  • Lead → generate_lead
  • CompleteRegistration → sign_up
6

Test Implementation

  1. Enable Preview mode in both containers
  2. Trigger events on your website
  3. Verify Meta CAPI tag fires and sends data to Meta
  4. Check Meta Events Manager for successful delivery