Logo of TAGGRS, written in blue and with a small favicon
HomeServer-side TrackingMeta CAPI Gateway
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 Deduplication
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 TrackingSpectacle 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 supports a predefined set of standard events that cover most website interactions. It is strongly recommended to use these standard events whenever possible, as they are already optimized for campaign use and require no additional configuration.

Meta Event Name
Description
Add payment info
Adding customer payment information during a checkout process
Add to cart
Adding an item to a shopping cart or basket
Add to wishlist
Adding items to a wishlist
Complete registration
Submitting information in exchange for a service provided by your business
Contact
Contact between a customer and your business by phone, SMS, email, chat, or other means
Customise product
Customising a product through a configuration tool or another application owned by your business
Donate
Donating funds to your organisation or cause
Find location
When a user finds a location with the intent to visit
Initiate checkout
The start of a checkout process
Lead
Submitting contact information with the understanding that they may be contacted later
Purchase
Completing a purchase, typically confirmed by an order confirmation or transaction receipt
Schedule
Booking an appointment
Search
Performing a search on your website, app, or other property
Start trial
Starting a free trial of a product or service
Submit application
Submitting an application for a product, service, or program (for example, a credit card or job application)
Subscribe
Starting a (paid) subscription for a product or service
View content
Visiting a specific page that you care about (for example, a product or landing page)

Event parameters

To enhance the data even further, Meta allows users to send additional data in the form of parameters, these values can contain anything from the value of an order to the detailed information of a specific product.

Most common parameters for eCommerce setups

These parameters are most often used in eCommerce tracking setups. Adding as many as possible helps ensure complete and accurate event data.

Event parameters

value
total value of the transaction or item
currency
ISO currency code (e.g. EUR, USD)
content_ids
array of product IDs (e.g. ['SKU123', 'SKU456'])
content_type
usually 'product' or 'product_group'
contents
array of product objects, e.g. [{"id": "SKU123", "quantity": 1, "item_price": 29.99}]
num_items
total number of items in the cart or purchase

Purchase-specific parameters

Used primarily for the Purchase event:

• order_id, unique transaction
• identifierdelivery_category, shipping method (e.g. 'standard',
'express')
• coupon, discount code used during checkout

Most common parameters for lead-generation setups

Lead-generation setups typically use fewer parameters than eCommerce setups. The parameters you include depend on your specific campaign objectives and the type of data you want to capture. Below are some commonly used options:

• value, estimated lead value, or 0 if unknowncurrency – ISO currency code (e.g. 'EUR')
• lead_type, describes the type of lead (e.g. 'form_submission', 'demo_request', 'contact')
• status, indicates the stage or qualification level (e.g. 'submitted', 'qualified')
• content_name, name of the form, page, or offer that generated the lead
• content_category, category or business segment of the lead (e.g. 'B2B SaaS', 'agency')
• form_id, unique identifier of the form used to submit the lead

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

User data parameters (for advanced matching or Server-side Tracking)

User data parameters help Meta identify users across devices and browsers, improving event matching rates and your data quality score. The more data points you send, the better your match rate will be.

User data parameters

•
em – email address (hashed)
• ph – phone number (hashed, E.164 format)
• fn – first name (hashed)
• ln – last name (hashed)ge – gender (e.g. 'm', 'f')
• db – date of birth (YYYYMMDD)
• ct – city
• st – state or province
• zp – ZIP or postal code
• country – ISO 2-letter country code
• external_id – unique customer or user ID from your CRM (or custom ID that remains consistent across sessions)
• client_ip_address – user’s IP address (for server events)
• client_user_agent – browser user agent string

Logo of TAGGRS Server-side Tracking: a light blue circle with two blue angle brackets
Expert insight:
For the highest match rate, always send at least em, ph, and external_id when available.

Custom events and parameters

If Meta’s default events and parameters do not fully cover your campaign goals, you can define custom event names and custom parameters.When doing so, keep the following rules in mind:

• Avoid special characters (e.g. ?!@$). Use only letters, numbers, or underscores in event and parameter names. The use of other characters could result in your event not being processed by Meta.
• Parameter values can contain any content, but must always be sent as a string, number, or object/array.
• Custom event names must be verified before they can be used in campaigns. You can verify them in Events Manager by selecting the event name and clicking the verification prompt.

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 white logo
Read the full manual on Facebook Server-side Tracking
icon of a white upward arrow
icon of a white thunder used by TAGGRS to visually introduce Server-side Tracking
Start for free with Server-side Tracking
icon of a white upward arrow
White silhouette of a person used as icon for the support call to action
Get expert support
icon of a white upward arrow
Previous
Google Ads Remarketing Tag
Next
Meta EMQ Score
DOCUMENTATION V1.3
Copyright © 2025 TAGGRS. All right reserved.
TABLE OF CONTENTS
Which events can you track?Event parametersPrepare your data layerCreate custom event triggers in GTMDefine data layer variablesConfigure the Meta Pixel Tag (Conversions API Tag)Test, debug, and publishBest practicesTroubleshootingUseful resources