Meta
CLItrail sends each attributed install to the Meta Conversions API with the visitor's Meta browser and click IDs, so Meta can optimise ads for installs.
#Set it up
#Generate an access token
In Meta Events Manager, choose your pixel, open Settings, find Conversions API and choose Generate access token. The link is visible only to people with developer access to the business.
#Add the destination
Enter the pixel ID and the access token. Optionally rename the events (defaults
CLIInstallandCLIFirstRun), set Limited Data Use, and add a value and currency.#Send a test event
Copy the test code from Events Manager → your pixel → Test events. It starts with
TEST.#Go live
Confirm Meta's terms and your notice duties, and verify your domain first.
#What is sent
A form POST to https://graph.facebook.com/ with a data field holding up to 1,000 events and an access_token field. The token travels in the body, never in the URL.
{
"event_name": "CLIInstall",
"event_time": 1790172131,
"event_id": "clt_f399d6357f61bcf15f9370c69a41662457de8a05",
"action_source": "other",
"user_data": {
"external_id": [
"a68e7a64d91bfe305bd5c2a9f285ca38dec72a8a0d4036ee28a92bc72fb773ac"
],
"fbc": "fb.1.1790171920120.YOUR_FBCLID",
"fbp": "fb.1.1790170011032.1098115397"
},
"custom_data": { "value": 1, "currency": "USD" }
}
action_sourceisother. The install happened in a terminal, and Meta asks advertisers not to label such actionswebsite.fbccomes from the_fbccookie, dated by the click time it carries, or is built asfb.1.<visit time in ms>.<fbclid>when the visit's URL had anfbclid. The attribution policy picks the most recent or earliest click, and the same forfbp.fbcandfbpare sent unhashed, as Meta requires, and malformed cookie values are left out.external_idis a SHA-256 hash of a pseudonymous installation ID. No email, name or other personal data is sent.- An install needs
fbcorfbpon a touch; otherwise nothing is sent to Meta. - Time limits. Meta rejects a whole request when any event is more than 7 days old, so queued events expire one hour before that.
- Deduplication. Meta keeps the first event with the same
event_idandevent_namewithin 48 hours. Retries stop before 48 hours. - Limited Data Use. Off, on with Meta deciding by the visitor's location (
LDU, country 0, state 0), or on for California (country 1, state 1000).