Before you start
Connect Meta
1
Open Sources
Open Sources. Find the Meta Ads card.
2
Authorize
Select connect. Complete Facebook Login for Business. Approve every requested permission.
3
Pick the ad account
Choose the ad account that runs the campaigns. Select set as primary.
needs primary account until you finish step 3, and we pull campaign spend only after that.
To change the primary account, select disconnect, then reconnect. Disconnecting clears the synced Meta campaign data.
Create the rule
1
Open the editor
Open Conversions. Select manage rules. Select new rule.
2
Set the trigger
Fill rule name. Pick the trigger event. Pick Meta as target platform.
3
Pick the pixel
Pick the pixel under Meta Pixel / App. Select next.
4
Map the event
Pick the platform standard event. Set value to
dynamic for revenue events. Set currency.5
Save
Select save. Enable the rule.
Reference
We post toPOST /v25.0/{pixel_id}/events on the Meta Graph API.
Standard events
Matching fields in user_data
We build
fbc as fb.1.{creation_time_ms}.{fbclid}. The creation time is the moment the fbclid first arrived, not the conversion time.
Value, currency, and custom_data
action_source
Deduplication
We sendevent_id, the same UUID the browser Meta Pixel fires with, and Meta collapses the pair into one conversion. This works only when the Pixel and Datalyr fire on the same page load.
Verify
- Open Conversions. Select manage rules. Open your rule.
- Select send test event.
- Open Events Manager → Test events in Meta.
- Confirm the event name, value, and currency match the rule.
- Return to Datalyr. Confirm the rule’s
sentcount went up by 1.
When it does not work
Next
- Conversion delivery: retry, dedup, and status rules for every platform.
- Conversions: read one delivery row and its response body.
- Attribution: how
fbclidreaches a server-side purchase.