Send conversion events to Meta (CAPI events)
Report leads and sales from your Facebook, Instagram and WhatsApp chats back to Meta, and check every event SmartComm sent.
Meta can show which ad brought each lead or sale, if you tell it what happened after the chat. SmartComm does this through Meta's Conversions API (CAPI). When a lead made from a chat reaches a chosen stage, SmartComm sends an event, such as Lead Submitted or Purchase, to the channel's Meta dataset. CAPI Events lists every event, so you can check it arrived.
Who can do this
- Admins, and people with the Help Desk access role.
- Linking a dataset is done on Meta Integration, so it also needs access to that page.
Before you start
- The channel must be connected. See Connect Facebook, Instagram and WhatsApp.
- Decide which CRM lead stages report an event. Each stage has a CAPI Event setting in the CRM lead stage settings. Its default, Do not report this stage, sends nothing.
- Only leads created from a ticket report events, because they carry the customer's chat details.
Where to find it
- Link a dataset: Help Desk › Meta Integration, ⋮ › Manage Dataset on the channel's row.
- See the events: Help Desk › CAPI Events.
Link a channel to a dataset
- Go to Help Desk › Meta Integration.
- Click ⋮ on the channel's row and choose Manage Dataset. The window Conversions API for and the channel's name opens.
- Choose how:
- Automatic: click Get from Meta to use the dataset Meta already has for this channel, or Create to make one.
- Manual: paste the Dataset ID and the Access Token from Meta's Events Manager. Tick "… is connected to this dataset" only if you linked the channel to the dataset in Events Manager.
- To test, type the Test event code from the dataset's Test events tab in Events Manager and click Test. You see "Meta accepted the event. Check the Test events tab." A test event is never counted as a real lead.
- Click Save. You see "Conversions API dataset updated".
When the channel is linked in Events Manager, Meta can show which ad brought each sale. When it is not, events still arrive, but Meta cannot match them to an ad.
Check the events that were sent
- Go to Help Desk › CAPI Events. The newest events are at the top.
- Click the filter button at the top right.
- Type in Search, or pick Created At, Status, Event, Channel or Source.
- Click Apply.
What the list shows
| Column | What it tells you |
|---|---|
| ID | Click it to see the event: Sent data and Meta response. |
| Dataset ID | The Meta dataset it went to. |
| Event | Lead Submitted, Qualified Lead, View Content, Order Created, Purchase, Order Shipped, Order Delivered, Order Canceled or Order Returned. |
| Event ID | One ID per lead and event, for example "lead-1579-leadsubmitted". A lead reports each event once, even if it enters the stage again. |
| Channel | The page or WhatsApp number of the chat. |
| Status | Sent, Failed or Skipped. Point at a failed or skipped one to see why. |
| Created At | When SmartComm made the event. |
| Source, Source ID | Lead and the lead's number. Click the number to open the lead. |
The download button next to Page No exports the events that match your filter.
If something goes wrong
| Message | What to do |
|---|---|
| "Channel has no conversions-api dataset configured." (Skipped) | Link the channel to a dataset, as above. |
| "Lead has no closing business value to report." (Skipped) | Purchase and Order Created need an amount. Fill in the lead's closing business value before it reaches that stage. |
| "No dataset on Meta for this channel yet" | Click Create, or use Manual. |
| "Dataset ID is required" | Fill in the Dataset ID. |
| "Test event code is required" | Copy the code from the Test events tab in Events Manager. |
| A Failed event | Point at the status to read Meta's reason. A wrong or expired access token is a common cause; paste a new one under Manual. |