Contents

Blog / How to set up Facebook (Meta) server-side tracking

How to set up Facebook (Meta) server-side tracking

If your “Purchase” events are tracked in browser, you’re one fluke away from broken attribution. Browser-side Pixel events can become unattributed due to ad blockers, Safari/ITP, script errors, consent rules acting up, and Meta may never see conversions that actually happened.

Subscription funnels are an even better case for proper server-side tracking: important lower-funnel conversions there inherently happen offline, such as when a trial subscription activates and becomes a paid subscription, or an upsell is made.

This guide shows how to fix that with Facebook (Meta) server-side tracking. Instead of making a common mistake of confusing browser events relayed through server-side GTM (sGTM), we'll send true server-to-server conversions straight from the system of record (such as Stripe, Shopify, or your CRM). You’ll get a practical setup checklist, tips on how to map standard events and commerce fields correctly, how to improve match quality, why deduplication can backfire when you send conversions both from server and browser.

How server-side tracking actually works and what Meta/Facebook Conversions API (CAPI) is

Meta (Facebook) Conversions API (CAPI) is a way to send conversion events to Meta from a server rather than relying only on a browser script. Think of it as a server-to-Meta event pipeline that can carry the same kinds of signals as the Pixel (conversions and click IDs).

'Server-side tracking' can mean two things. It might mean relaying browser events through a server container (like sGTM or a gateway), or it might mean true server-to-server capture directly from systems like Shopify, Stripe, CRMs, or order databases. Platforms like Able CDP fit the second category—capturing conversions from the source system and forwarding them to Meta. Depending on a funnel, a CDP may have a huge advantage over more traditional server-side GTM tracking. (More on this below.)

Meta/Facebook server-side tracking implementation methods 

Before you start wiring events, pause on one strategic question: “Where does truth live for conversions—browser or backend system of record?” If your “Purchase” is only fired when a thank-you page loads, you’re still exposed to the same fragility that broke Pixel-only tracking. If Purchase event is anything like an order, a Stripe payment, or a CRM stage change, you’ll usually want backend-originated events sent via CAPI.

Here’s a quick tradeoff matrix to anchor the decision:

Method Setup time Control Reliance on browser cookies Backend sources (Stripe/Shopify/CRM) Maintenance burden
CAPI Gateway Fast–Med Med Med–High Not supported Med
Server-side GTM (sGTM) Med High Med Typically not implemented Med–High
Bespoke API integration Slow Highest Low Supported High
CDP-based S2S (e.g., Able CDP's Meta Server-Side Tracking) Fast Med–High Low–Med Supported Low

Option 1: Conversions API Gateway

A gateway may reduce client-side loss by relaying events server-side, but they still originate from the browser (Pixel → gateway → Meta). This method does not give you “system-of-record” conversions.

Option 2: Server-side Google Tag Manager (sGTM)

sGTM gives you strong control over routing, transformations, and governance. However, unless you also specifically connect backend sources into sGTM, and use a database to match these server-side conversions to Meta click IDs, all your 'server-side' conversions will still be originating in browser. Server would simply proxy them, contributing almost no value.

Option 3: Bespoke API integration (most control, most engineering)

Direct integration is preferred when you want to have full control on what gets sent to Meta/Facebook. It’s also the most engineering-heavy: you’ll own auth, retries, event monitoring and alerting, event schemas, deduplication, and ongoing changes.

Option 4: CDP-based server-side conversion tracking (like Able CDP)

Customer data platforms keep website user journey and offline activity in one place. They allow to attribute even backend-originated Purchase/Subscribe events (e.g., Stripe invoice.paid, Shopify “paid” orders, CRM “Qualified” stages) to Facebook/Meta click IDs and traffic sources, ensuring Meta has the highest chance of attributing these events to the source.

In practice, a hybrid model is often convenient: keep the Pixel for upper-funnel signals (PageView, ViewContent, AddToCart) and use CAPI for core conversions (Purchase/Subscribe/Lead) from the backend. If you want backend-sourced conversions without building a custom integration, a CDP-based server-to-server route—such as Able CDP—can ingest events from sources like Stripe webhooks and forward them to Meta via CAPI while also including click/browser IDs tracked on site for matching.

This is the option we'll focus on in this guide.

How to set up Facebook (Meta) server-side tracking: step by step

With a CDP, setup means connecting three things: your website, the system that records your sales, and Meta. Here’s the whole flow in Able CDP. Most funnels take minutes, not a sprint.

Step 1. Create an Able account

Sign up for a free trial. During sign-up, Able scans your website and recognises the pixels, tags, forms and e-commerce platform already in use.

Step 2. Install the tracking code

Open Get Code in the Able Dashboard, enter the URLs of pages with lead or contact forms, and click Generate. Paste the code into your site’s <head> or add it as a custom HTML tag in GTM.

This is what records each visitor’s source and Meta click ID (fbclid), then ties them to the email or phone the visitor later submits. A few cases need a different route, for example:

  • Shopify: add Able’s Custom Pixel under Settings > Customer events instead (Shopify setup).
  • React/Vue apps or single sign-on buttons: use the “Web Application” instructions on the same page.
  • Typeform, Calendly, HubSpot and similar widgets: see the form tracking guide.

Stripe payment links on your site are tagged automatically.

Step 3. Connect the system that records your conversions

Click Add Service Integration and choose where purchases are actually confirmed. For example:

  • Stripe: add the webhook endpoint Able shows you in Stripe’s Webhook Dashboard, enabling invoice.paid, checkout.session.completed, customer.subscription.deleted and charge.refunded (Stripe setup).
  • Shopify: create a webhook under Notifications > Webhooks for the order event you count as a purchase, typically Order payment, in JSON format.
  • CRM or custom backend: connect Salesforce or send events through a webhook.

Able supports many other platforms as sources for conversion - see our integration tutorials for details.

Step 4. Check that conversions are attributed

Before sending anything to Meta, confirm the data is right. In the Able Dashboard, new leads should appear under Customers > Leads and payments under Customers > Purchases, each with the correct marketing source.

Step 5. Generate a Conversions API access token

  1. Open Meta Events Manager and select your Pixel or Dataset. To create a new one, pick Web or Offline, skip the guided setup and choose to configure manually.
  2. Go to the Settings tab, scroll to Conversions API and click Generate access token.
  3. Copy the token and the Dataset ID.

Step 6. Connect Meta in Able

Click Add Service Integration again and select Facebook (Meta). Paste the access token (leave the refresh token empty), select Purchase or another event type to send, and paste your Dataset ID. Leave the event name blank unless you need a custom one, for example to comply with Meta’s healthcare restrictions.

Step 7. Stop sending the same conversions from the Pixel

Keep the Pixel for PageView and other upper-funnel events, but remove Lead and Purchase from it once Able sends them. This is because Meta can effectively suppress the richer server event—even if the server event has better user_data, cleaner revenue fields, or the “paid” status from Stripe/Shopify.

Our advice is to avoid sending the same conversion twice because dedup can lead Meta to ignore the higher-quality server signal. Instead, Able sends one combined richer CAPI event by merging browser/click IDs (_fbp/_fbc) with backend identifiers, rather than relying on Pixel+CAPI dedup to “merge later.”

The exact steps to switch individual conversions off are platform-dependent. On Shopify, that means turning off Facebook data sharing and adding the Pixel code to your theme manually. The deduplication section below explains why.

Step 8. Confirm events arrive in Meta

Make a test purchase and check Events Manager: the event should appear with Server as its source. If it shows Server + Browser, something is still firing from the browser. The testing section covers what to look for.


This page has been written by the Able CDP Customer Success Team, formed of digital marketing practitioners and seasoned marketing data experts.
If you have any questions or suggestions, please contact us using the contact form.

More Blog Posts on Meta/Facebook

More Resources

Meta/Facebook

Recent Blog Posts on Server-Side Tracking

Learn more about:

Server-Side Tracking