Meta Pixel
- The Meta Pixel integration sends events from Leadtosale’s servers to Meta’s Conversions API (CAPI).
- It sends lead, qualified lead and sale events.
Setup
- Go to Container settings > Integrations.
- Enter your “Meta Pixel ID”.
- Enter your “Meta Conversions API Access Token” (see below).
- Click “Save”.

Finding your Pixel ID and token
Pixel ID: a number such as 123456789012345, shown in your pixel’s settings in Meta Events Manager.
Conversions API Access Token: in Meta Events Manager, go to Datasets, select your pixel, then Settings > Conversions API > Set up a direct integration > Generate access token.

Events sent to Meta
- Lead: a new lead is captured.
- QualifiedLead: a lead is marked as qualified.
- Purchase: a lead is marked as a sale, with its value.
Data sent
- Email address for form and custom leads (SHA-256 hashed)
- Phone number for call leads (SHA-256 hashed)
- City and country
- Facebook click and browser IDs (fbc, fbp)
- IP address and user agent

Tracker settings
- Turn Meta on or off for each tracker by ticking “Send new leads to Meta Conversions API” in the tracker’s Integrations section.
- Call trackers also have “Minimum call duration for lead events”, so short calls such as hang-ups aren’t sent as leads.
- You can’t turn off QualifiedLead or Purchase events for a tracker.

Testing
- Create a test lead and check Meta Events Manager for the event. Events usually appear within a few minutes, but can take up to 24 hours.
- Check event match quality in Events Manager’s diagnostics.
Troubleshooting
- Check your Pixel ID is correct.
- Check your access token hasn’t expired.
- Check “Send new leads to Meta Conversions API” is ticked on the tracker.
- Check Events Manager > Diagnostics for delivery problems.
- Make sure api.leadto.sale isn’t blocked.
