A pixel is a web address that CallsFlow Plus calls for you when something happens on a call. Use it to tell another system about the call: an ad platform that should count a conversion, your own tracker, a CRM, a spreadsheet script, anything that can receive a web request.
Pixels belong to a campaign. Open the campaign and use its Pixels panel. A campaign can have up to 20 pixels. Only account admins can add or change them.
When a pixel fires
Each pixel waits for one of five events:
- Call arrives: a call came in on this campaign.
- Buyer connected: a buyer answered the call.
- Call ended: the call finished, whatever the outcome, including calls that failed or were turned away.
- Publisher paid: the call earned its publisher money for the first time. That is when the payout is settled, or when a later sale pays out.
- Buyer converted: a sale was confirmed, either by the buyer or by you marking it by hand.
A pixel fires once per call per event. If a buyer sends the same sale twice, or a carrier repeats a message, your URL is still called only once. If you want to hear about two events, add two pixels.
Setting one up
- Open the campaign and find its Pixels panel.
- Click Add pixel and fill in the fields below.
- Save the pixel, then click Test on its row to send one sample call through it.
The fields:
- Name: what you see in the list.
- Event: one of the five above.
- Method: GET calls the address as it is. POST can also send a body.
- URL: the address to call. It must start with
http://orhttps://. Addresses on private or internal networks are refused. - Body and Body format (POST only): the text to send, as JSON or as Form. If you add a body and pick nothing, JSON is used.
- Headers (optional): extra lines such as an authorization token that the other system asks for.
- Only fire for (optional): only fire for some calls. See below.
- Enabled: switch a pixel off without deleting it.
Merge tags
Anywhere in the URL or body you can put a merge tag in curly braces, for example https://example.com/hit?call={call_id}&state={state}. When the pixel fires, each tag is replaced with that call's value. Use the tag picker next to the field to see every tag and an example of what it becomes. It also lists any custom fields you added, as {tag.name}.
Good to know:
- Tags are made safe for where they sit. In a URL or a form they are encoded, so a space becomes
%20. In a JSON body they are escaped, so a quote cannot break your JSON. In JSON, put the quotes around the tag yourself:{"caller":"{caller}"}. - A tag we do not know is left exactly as you typed it.
- A value we do not have yet is sent empty.
- Merge tag values are read at the moment the pixel is sent, not when the event happened.
- A tag can be used in the path or the query of the address, but not in its host name (the part before the first
/). - Money tags such as
{revenue}and{payout}are in dollars, and the matching_centstags are whole cents. They include any adjustments made to the call after it was settled. {event}is the event that made the pixel fire, and{status}is the call's status.
Headers are hidden once saved
For your protection, headers are write-only. After you save, the pixel only shows Headers are set (hidden), never the values. To change them, type the new headers and save. Leaving the header rows blank keeps the headers you saved before, and so does editing anything else about the pixel. To remove them all, use the Remove headers button.
Filters
A filter, under Only fire for (leave empty for every call), limits a pixel to some calls. You can choose one or more Publishers, one or more Sources, and the caller states in Only these states (two-letter codes such as TX). A call must match every part you filled in. Leave a part empty to allow everything. A call that does not match is shown as skipped in the log, and is not tried again.
Test button
Test sends one sample call through the pixel right now and shows the answer from the other system, so you can check the address, the body and the headers before real calls arrive. A test works even when the pixel is switched off. If the other system takes more than a few seconds, you see Still sending, check Recent fires: the test is still queued, and its result appears in the recent fires. A test never counts as a real fire.
Recent fires, retries and giving up
Under each pixel, Recent fires lists the last 20 times it fired: the time, the event, the result, the code the other system answered with, and a link to the call.
- sent: the other system answered with a success code (2xx).
- pending: waiting to be sent, or waiting to try again.
- skipped: the pixel was switched off, or the call did not match the filter. It is not tried again.
- failed: every attempt failed.
If the other system does not answer, or answers with an error, we try again after 30 seconds, then after 2 minutes, 10 minutes and 30 minutes. That is five tries in all; after the last one the fire is marked failed. Each try waits at most 5 seconds for an answer. A Test is tried once only. If the address sends us on to another address (a redirect), we follow it up to three times, but never from a secure https:// address to a plain http:// one, and your headers are not passed on to a different host.
Fires are kept for 30 days and then removed. Deleting a pixel also removes its log.
Good to know
- A problem with a pixel never affects the call itself, your billing or your reports.
- Publishers and buyers cannot see your pixels.
Still stuck?
Ask the support chat inside your account, or send us a request.