When the Meta connector is available, etlmcp fills the common conversions and conversion_value columns from Meta's omni_purchase action type alone, and you cannot pick another type at the source. To report a lead, a registration or a custom conversion in those columns instead, add derive rules to the Meta pipeline that overwrite conversions with extra.actions.<type> and conversion_value with extra.action_values.<type>, then work cpa out again. Your Google Ads and other pipelines keep their own definition, because rules belong to one pipeline and each pipeline reads one source.
Why the common column is purchases
Meta's insights return every action an ad drove as a list of action types, with counts in actions and values in action_values. etlmcp keeps all of them: each type becomes an extra column, such as extra.actions.lead and extra.action_values.lead. Only one type, omni_purchase, feeds conversions and conversion_value, so a business that optimises for sign-ups or form fills sees purchases in the column that a cross-platform report lines up with Google's conversions.
Pick the action type
Meta's Ads Action Stats reference lists these types:
| Action type | What Meta counts |
|---|---|
omni_complete_registration |
registrations completed |
offsite_conversion.fb_pixel_complete_registration |
completed registrations reported by the Pixel |
lead |
offsite leads and leads on Facebook together |
onsite_conversion.lead_grouped |
leads on Facebook only |
offsite_conversion.fb_pixel_lead |
leads reported by the Pixel |
offsite_conversion.custom.<id> |
one custom conversion you defined, by its ID |
Types that start offsite_conversion come from the Meta Pixel. Choose one type and use it in both rules. Adding several lead or registration types together usually counts the same action twice; Meta lead action types explains which overlap. For a custom conversion, the column carries the ID, not the name; Meta custom conversions shows how to find the ID.
Before you write the rule, check that the column exists in your data: an action type appears only on ads and days where Meta reported it. Meta's extra.actions columns lists what a sync brings in.
The rules
In the dashboard's pipeline editor, add three Derive rules, in this order, each written as name = expression. This example uses completed registrations:
conversions = extra.actions.omni_complete_registration + 0
conversion_value = extra.action_values.omni_complete_registration + 0
cpa = cost / conversions
For a custom conversion, write extra.actions.offsite_conversion.custom.<id> with the real ID in place of <id>; expressions accept the dotted names as they are.
What each part does:
- The
+ 0. On a day Meta reported none of that action for an ad, the extra is missing, and a derive that names only a missing extra gives an empty value. Addition treats an empty value as 0, so+ 0writes 0 instead. Leave it off if you would rather keep those days empty. - The order. Rules run top to bottom, so the third rule divides by the new
conversions. A derive that names an existing column replaces its value. cpa. etlmcp works outcpaonce, when it reads the row, from purchases. Without the third rule it would still be cost per purchase. Dividing by 0 gives an emptycpa, not an error.ctr,cpcandcpmdo not depend on conversions and need nothing.- A group rule. If the pipeline also groups rows, put the group after these rules: it adds up the new values and works
cpaandroasout again from the totals.
Because conversions, conversion_value and cpa are common metrics, they stay number columns in your destination after a derive; a derive under a new name would arrive as text. The derive rule page covers the rest of the rule's behaviour.
Keeping it to Meta rows
You do not need a network filter, and you cannot write one: expressions have no text values, and the rule check refuses network as an unknown field. You do not need it because a pipeline is created with one source, its rules apply to that source's stored rows only, and a Google Ads account is a separate source with its own pipeline. Put the rules on each Meta pipeline whose numbers you want changed. When several pipelines write to one table, the Google rows still carry Google's own conversions.
What still shows purchases
- The extra column.
extra.actions.omni_purchaseandextra.action_values.omni_purchaseare still delivered, so you keep purchase figures beside the new definition. - Stored data and agents. Rules run at delivery. query_data returns rows as pulled, before any pipeline's rules, so an agent asking for
conversionsstill gets purchases; ask it for the extra column by name instead. - Earlier days in PostgreSQL. Each run replaces only the days in its range, so days delivered before the change keep purchase figures until a run covers them again. To rewrite them, start a run over those dates; a run started by hand covers at most 366 days, so split longer history into several runs. See how PostgreSQL rows are replaced.