Skip to main content

Meta Conversions API and Pixel

Report your leads to Meta so Facebook and Instagram ads can measure and optimize for them. There are two parts, and they work together:

  • Facebook Conversions API (an integration): our server sends a Lead event to your Meta Pixel for every lead from your chat and form widgets. Ad blockers and browser tracking limits don't affect it.
  • Meta Pixel (a form widget setting): your stand-alone (hosted) form pages load your pixel and send PageView and Lead from the visitor's browser.

When both are on, Meta counts each lead once: the browser Lead and the server Lead carry the same event ID, and Meta deduplicates them.

Before you start​

From Meta Events Manager you need:

  • Your Pixel ID: the number shown under your pixel (dataset) name, 10 to 20 digits.
  • An access token: in Events Manager, open the pixel, go to Settings, and under Conversions API choose Generate access token. A System User token from Business Settings with permission to send events to this pixel works too.

Your plan must include integrations. Contact support if Facebook Conversions API isn't offered when you add an integration.

Set up the Conversions API​

  1. In Studio, open the app (location) and go to Integrations.
  2. Click Add Integration and choose Facebook Conversions API. The Facebook Conversions API Setup dialog opens.
  3. Enter the Meta Pixel ID.
  4. Enter the Access Token. It is stored encrypted and never shown again.
  5. Optional: enter a Test Event Code (see Check it in Events Manager). While it's set, events go only to Test events, not to your ad reporting.
  6. Click Connect.

To change the token or remove a test event code, disconnect the integration and connect it again.

What the server sends, and when​

One Lead event for every completed lead, as soon as the lead is captured. Partial leads, where the visitor didn't finish, are not sent.

Event fieldWhat it holds
event_nameLead
event_timeWhen the lead was captured
event_idFor form leads, the same ID the browser used for its Lead, so Meta can deduplicate. Otherwise the lead's ID
action_sourcewebsite for form leads, chat for chat leads
user_data.emEmail address, lowercased and SHA-256 hashed
user_data.phPhone number, digits only and SHA-256 hashed
user_data.fn, user_data.lnFirst and last name, lowercased and SHA-256 hashed. A full name is split into first and last
user_data.fbp, user_data.fbcThe visitor's Meta browser and click cookies (_fbp, _fbc), when the form widget found them on your site

Names, emails and phone numbers are hashed before they leave our server; Meta matches the hashes against its users. The more of these a lead has, the better the match. A phone number entered without its country code (for example (555) 123-4567 instead of +1 555 123 4567) matches less often.

Turn on the Meta Pixel for hosted form pages​

The Meta Pixel setting applies to the stand-alone form pages we host for your form widget, such as the page your Book Online button or a booking link opens. It does not add the pixel to your own website.

  1. In Studio, open your form widget's channel page.
  2. Click the 3rd Party Tracking icon.
  3. Open Meta Pixel and enter your Meta Pixel ID.
  4. Click Done, then save the channel.
Your ad account receives a Lead for every submission

Setting a Pixel ID sends a Lead conversion into that Meta ad account for every completed form submission. Don't also add your own submit tracking to the same pixel on these pages (a button-click event from Meta's Event Setup Tool, a Google Tag Manager tag, or a custom conversion on the page address). Those can't share our event ID, so every lead would be counted twice. Use one or the other.

What the hosted page sends:

  • PageView when the page loads.
  • Lead once per completed submission, after the last step, with the shared event ID. Never for partial or abandoned forms, and never in preview.
  • Nothing at all for a visitor whose browser sends a Global Privacy Control signal. Meta's Limited Data Use option is on for every visitor, so Meta applies it to visitors in California.

There is no consent banner step, so check with your own privacy advisor before using the pixel for audiences that need prior consent, such as visitors in the EU.

Form embedded on your own site? If you track the form yourself with your own pixel, send Lead with the same event ID so Meta deduplicates it against the server event. The form widget's onSubmit callback receives that ID (and no personal details): fbq("track", "Lead", {}, { eventID: eventId }).

Check it in Events Manager​

  1. In Meta Events Manager, open your pixel and go to Test events. Copy the test code it shows.
  2. In Studio, connect Facebook Conversions API with that code in Test Event Code (disconnect and reconnect if it's already connected).
  3. Submit a test lead on your form or chat widget. Within a minute or so, a Lead event appears under Test events, received from Server. A lead from a hosted form page with the pixel on also shows a Browser Lead, marked as deduplicated.
  4. When it works, disconnect and connect again without the test code, so events count in your ad reporting.

After that, the pixel's Overview in Events Manager shows Lead events by connection method (Browser and Server) and Meta's event match quality.

Lead events stopped arriving? The access token may have been revoked or expired. Generate a new one and connect the integration again.