Skip to main content

Send conversions back to Facebook

This scenario sets up server-side conversion sending (CAPI): when a registration or a deposit happens on your side, Qubix reports it straight to Facebook's server, and its algorithms optimize on real events. Unlike the browser pixel, server-side sending is not lost to blockers — for more, see FB CAPI.

What you need beforehand: a Facebook pixel and its access token (created in Facebook), and a campaign you drive traffic to.

1. Add the pixel and its token​

Open the Facebook section, go to the Pixels tab and click + Add pixel. Enter a Name and the Pixel ID, paste the Pixel access token, then click Validate and Save. For more — see Pixels.

the new pixel window with the validate button

Validate before saving

Always click Validate first — a green checkmark means Facebook accepted the token, so the pixel will really receive events instead of producing errors on live traffic.

2. Create a Facebook source with CAPI mapping​

Open Sources and click + Add source. In the From template field choose facebook — this replaces the regular postback with the Conversions to Facebook block. There you map "Qubix event → Facebook event" (for example, deposit → Purchase); where the Conversions section is available, the block has the Which events go out line instead, and the mapping is set in Conversions, on the Where it goes tab of each conversion. Qubix recognizes the pixel by the ad number or takes it from the click link, and the token — from the pixel list. Click Create. For more — see Creating a source and Parameter passing and postback.

In the campaign, choose this Facebook source on the Settings tab, then in the Entry points block click + Entry point, pick a domain and save the campaign with the Save button. Under the entry point, the Ad link block has two variants: Without pixel and With pixel; it opens on the one the source's Pixel setting names — In the link for With pixel, Automatically for Without pixel. With the pixel, the Pixel list appears under them, with the first of your pixels already in it: pick yours, and it is substituted into the link. With no pixel in the list, the link holds a placeholder instead of the number and cannot be copied. Then click Copy and paste the link into the ad. For more — see Campaign link and parameters.

The source in the campaign is what makes the sending work: Qubix takes the event mapping from the source of the campaign the visitor came through, and a conversion whose visit belongs to no campaign with a source does not go to Facebook — see FB CAPI.

4. Watch for send failures​

Server-side sending has no screen of its own — it works in the background. If an event fails to reach Facebook, subscribers of the Conversion send failures role get an alert in Telegram. Subscribe in Notifications, and set how often the alert repeats in Connections → Telegram.

Done​

Conversions are now sent to Facebook server-side, and you get an alert if any send fails. Next: