Meta Pixel and Conversions API
Connect your Meta Pixel and the Meta Conversions API: which standard and custom events Meta receives, what the server sends with hashed client details, how duplicates are avoided, testing, troubleshooting, and why Meta may report more purchases than you had.
6 min read · Updated November 22, 2026
On this page
Your booking page sends Meta standard events (AddToCart, InitiateCheckout, Purchase, Lead) and a few custom events through your Meta Pixel. Connect the Conversions API too, and iBooker's server sends bookings to Meta with the client's hashed details, which helps them get counted when the browser blocks the pixel.
Connect the Meta Pixel#
- 1In Meta Events Manager → Data sources, open your pixel and copy its ID: a number of about 15–16 digits.
- 2In iBooker, open Admin → Analytics → Tracking pixels and paste it into Meta Pixel. The whole pixel snippet works too: the ID is taken out of it.
- 3Click Save changes.
The pixel records a PageView when the booking page loads, then the booking events below.
Events Meta receives#
| Meta event | Type | When |
|---|---|---|
| SelectLocation | Custom | A location is selected |
| AddToCart | Standard | A service is added to the cart |
| SelectStaff | Custom | A specialist (or “Any available”) is chosen with the service |
| SelectAvailability | Custom | A time is picked and the client continues to checkout |
| InitiateCheckout | Standard | The checkout step opens |
| Purchase | Standard | Square has created the booking |
| Lead | Standard | Same moment as Purchase: the booking as a lead (Website leads in Ads Manager) |
| JoinWaitlist | Custom | The client joined your waitlist (kept apart from Lead so lead reports stay clean) |
- Parameters are listed in Events reference. location_name, location_id, staff_name and appointment_time are custom parameters you can filter on in Events Manager and use in custom conversions.
- Purchase and Lead carry customer_segmentation: new_customer_to_business or existing_customer_to_business.
- Optimize sales campaigns for Purchase and lead campaigns for Lead. Don't count both as the same conversion.
- Embedded: the embed script adds your pixel to your page next to existing pixels and sends one PageView for it (none if your site already runs it). Meta's pixel code sends booking events to every pixel on the page.
Conversions API (Beta)#
The Conversions API is the server-side twin of your pixel. iBooker's server sends events to Meta with the client's hashed contact details, IP address and browser, which improves matching and helps bookings get counted when the pixel is blocked. Check the privacy and consent rules that apply to your business, and mention this sharing in your own privacy policy.
Connect it
- 1Save your Meta Pixel ID in Admin → Analytics first. The Conversions API sends to that pixel.
- 2In Meta Events Manager, open that same pixel (dataset) → Settings → Conversions API → Generate access token.
- 3In Admin → Analytics → Meta Conversions API, paste the token into Access token and click Connect.
iBooker checks the token with Meta before saving. The card then shows a Send events switch (Sending or Paused) and Last event sent (a time, or Failed with Meta's error). Change token replaces the token; Disconnect stops server events while your pixel keeps working. If you change the Pixel ID later, click Change token and save (the field can stay blank) so iBooker can confirm the token reaches the new pixel.
What is sent
| Events | Sent by | Client data included |
|---|---|---|
| Purchase, Lead | The server, when Square creates the booking. The pixel sends them only as a fallback if Meta doesn't confirm the server's copy. | Hashed as Meta requires: email, phone, first and last name, birthday and city / state / ZIP (when collected), country, and the Square customer ID as external_id. Also IP address, browser, fbp / fbc cookies and customer_segmentation. |
| JoinWaitlist | Server and pixel, same event_id | Hashed email, phone, name and country, the Square customer ID when known, plus IP address, browser and fbp / fbc |
| Funnel events (AddToCart, InitiateCheckout, SelectLocation, SelectStaff, SelectAvailability) | Pixel and server, same event_id | IP address, browser and fbp / fbc only |
- Server events carry the same parameters as their pixel twins.
- Purchase and Lead go from the server alone so Meta gets the client's contact details: according to Meta's documentation, it keeps the browser copy of a deduplicated pair and doesn't say it uses details from the dropped one.
- The event source URL is your page when embedded, otherwise the booking page.
- An expired fbc cookie is left out; events with too little information to match aren't sent.
- Quick Book bookings that staff confirm from the admin aren't sent.
How duplicates are avoided
Meta counts a pixel and a server event once when they share the event name and event_id. Purchase and Lead use the Square booking ID; other events get a random ID shared by both copies. If your Google Tag Manager fires Meta tags from iBooker's events, map their Event ID to the dataLayer event_id.
Testing in Events Manager
- 1In Events Manager, open Test events and copy the test code.
- 2In the Meta Conversions API card, under Check it in Events Manager, paste the code.
- 3Send test sends a single PageView with the code. It appears in Test events.
- 4Test mode shows your server events in Test events for 30 minutes while you go through your booking page (Turn off ends it early).
- Funnel events and JoinWaitlist appear from Browser and Server with the same Event ID; the server copies go only to Test events.
- Purchase and Lead appear from Server only and also go out for real, so a test booking still counts.
- According to Meta, test events aren't used for ads, which is why test mode ends by itself.
Troubleshooting#
- No events at all: check that the Pixel ID is the 15–16 digit number from Events Manager and the field shows Added.
- Embedded booking page: the pixel fires on your own page, so check your website's page in Meta Pixel Helper, not the booking link.
- Purchase and Lead show “Server” as the only source: expected when the Conversions API is connected.
- Connect is refused: for an invalid or expired token, generate a new one in Events Manager. “This token can't send events to pixel …” means it was generated for a different pixel.
- Last event sent shows Failed: Meta's error is shown under it.
- Server events stopped: check that Send events is on (Sending), and that the Pixel ID wasn't changed without saving the token again.
Why Meta may show more purchases than you had#
Usually this isn't double counting: each booking sends one Purchase, deduplicated across pixel and server. Meta's attribution can credit more:
- View-through: depending on your attribution setting, Meta may credit a purchase to an ad the person only saw within a day before booking, including regulars who would have rebooked anyway.
- Cross-device: seen on a phone, booked on a laptop.
- Other channels: a client from Google who had also seen your Meta ad.
To check, compare Purchase events in Events Manager with your real bookings for the same days (if they match, nothing is duplicated), look at click-through results only (Compare attribution settings in Ads Manager), or add UTM tags to your Meta ads and compare with the source in saved bookings (Admin → Appointments) or the Traffic source block of your booking emails.
← Previous
Google Analytics 4 and Google Tag Manager
Next →
TikTok, OpenAI Ads, Microsoft Clarity and WhatConverts
Something unclear or missing? Ask support — we keep these pages up to date.