Logo of TAGGRS, written in blue and with a small favicon
HomeServer-side Tracking
Start for free
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 DeduplicationMeta CAPI Gateway
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 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

Set up Meta Pixel

This guide provides the step-by-step process for implementing the Meta Pixel for server-side tracking using Google Tag Manager (GTM) and TAGGRS. By moving Meta Pixel event tracking from the browser to your server container with TAGGRS and GTM, you can capture key user actions (like purchases, sign-ups, and page views) and send them to Meta via the Conversions API, ensuring your Facebook and Instagram campaigns remain data-driven and future-proof.

Which events can you track?

Meta Event Name
Description
PageView
User views a page
ViewContent
User views a product or content detail
AddToCart
User adds a product to cart
InitiateCheckout
User starts the checkout process
AddPaymentInfo
User enters payment details
Purchase
User completes a purchase
Lead
User submits a lead form
CompleteRegistration
Search
User performs a search
Custom Events

Prepare your data layer

A structured data layer is essential for reliable event tracking.
Ensure your website pushes relevant event data (e.g., product ID, value, currency, transaction ID) to the data layer on each action you want to track.
  • For e-commerce, follow Meta’s recommended event parameters.
  • Use official plugins or custom scripts to populate the data layer for platforms like Shopify, WooCommerce, Magento, or custom builds.
Logo of TAGGRS Server-side Tracking: a light blue circle with two blue angle brackets
Expert Tip
Use GTM’s Preview mode to inspect your data layer and verify event parameters.

To send detailed event data to Meta, create variables that extract values from your data layer:

Create custom event triggers in GTM

  1. In GTM, go to Triggers and click New.
  2. Select Custom Event as the trigger type
  3. Enter the event name as it appears in your data layer (e.g., purchase, add_to_cart).
  4. Scope the trigger as needed (e.g., All Custom Events or Some Custom Events).
  5. Save your trigger.

Define data layer variables

  1. Go to Variables in GTM and click New.
  2. Choose Data Layer Variable.
  3. Enter the data layer path (e.g., ecommerce.value, ecommerce.currency, ecommerce.items, ecommerce.transaction_id).
  4. Name your variable descriptively (e.g., “DLV – ecommerce.value”).
  5. Repeat for each parameter you want to send.
Data Layer Variable
Description
ecommerce.value
Revenue value of the event
ecommerce.currency
Currency code (e.g., USD, EUR)
ecommerce.items
Array of product objects
ecommerce.transaction_id
Unique transaction ID
user_data.email
User email (hashed for privacy)
user_data.phone
User phone (hashed for privacy)

Configure the Meta Pixel Tag (Conversions API Tag)

  1. In GTM, go to Tags and click New.
  2. Select Tag Type: Custom Template or HTTP Request (for server containers), or use a dedicated Meta Pixel/CAPI template if available.
  3. Enter your Meta Pixel ID and Access Token (from your Meta Events Manager).
  4. Map your event name and parameters (use the variables created above). Example parameters: event_name, event_time, value, currency, content_ids, content_type, user_data
  5. Link the tag to your custom event trigger.
  6. Save the tag.
Logo of TAGGRS Server-side Tracking: a light blue circle with two blue angle brackets
Expert insight:
For best match rates, include as much user data as possible (hashed emails, phone numbers, etc.) in the payload.

Test, debug, and publish

  1. Use GTM Preview mode to trigger your events and inspect outgoing requests.
  2. Check the Meta Events Manager in Facebook Business Suite for incoming server events and deduplication status.
  3. Once confirmed, Submit and Publish your GTM container changes.

Best practices

Event Naming:
Use Meta’s standard event names for maximum reporting and optimization benefits.
‍
Parameter Completeness:
Include all recommended fields (value, currency, content_ids, user_data) to maximize match quality and attribution.
‍
Data Privacy:
Hash user identifiers (email, phone) before sending to Meta for compliance.
‍
Deduplication:
If using both browser and server events, implement the event_id parameter for proper deduplication.
‍
Debugging:
Use Meta’s Test Events tool to verify event delivery and troubleshoot issues.

Troubleshooting

Event not firing
Check trigger configuration and event name in GTM
Data missing in Meta
Verify data layer variable paths and tag setup
PrivaParameter errorscy/compliance concerns
Always collect user consent and never send unhashed PIIConfirm parameter names/values and match Meta’s documentation
Low match quality
Ensure user_data fields are complete and properly hashed
Duplicate events reported
Implement and match event_id for deduplication

Useful resources

Facebook server-side tracking - The full manual
Find expert support
Previous
Google Ads Remarketing Tag
Next
Meta EMQ Score
Copyright © 2025 TAGGRS. All right reserved.
TABLE OF CONTENTS
Which events can you track?Prepare your data layerCreate custom event triggers in GTMDefine data layer variablesConfigure the Meta Pixel Tag (Conversions API Tag)Test, debug, and publishBest practicesTroubleshootingUseful resources