ETLMCPData Conveyance Works
Log in Start free
Guides

Meta custom conversions in etlmcp data

Why a Meta custom conversion arrives as a column named by a numeric ID, how to match that ID to its name, and how to rename the column.

Coming This connector is coming.

Meta reports each custom conversion under the action type offsite_conversion.custom.<id>, where <id> is the custom conversion's numeric ID, not its name. When the Meta connector is available, etlmcp keeps that type as is, so the count lands in a column named extra.actions.offsite_conversion.custom.<id> and the value in extra.action_values.offsite_conversion.custom.<id>. To know which column is which, match the ID to the custom conversion's name, then add a rename rule to your pipeline so the column reaches your destination under a name you can read.

What Meta sends

A custom conversion is a rule you set in Events Manager on top of standard events, custom events or All URL Traffic, to count a narrower set of actions: for example, purchases whose URL contains a certain word.

Meta's insights return actions (counts) and action_values (conversion values) as lists of entries, each with an action_type. Two types are easy to confuse:

Action type What it counts
offsite_conversion.custom.<id> one custom conversion you defined, identified by its ID
offsite_conversion.fb_pixel_custom custom Pixel events: events your site sends with a name of your own

The second type is not a custom conversion. A custom Pixel event is code on your website that fires an event you named; a custom conversion is a rule in Events Manager with its own object and ID.

Where it lands in etlmcp

When the Meta connector is available, it reads both lists for every ad and day and makes one field per action type. Fields outside the common schema go under extra, so a custom conversion gets two columns:

  • extra.actions.offsite_conversion.custom.<id>: how many times the custom conversion was counted.
  • extra.action_values.offsite_conversion.custom.<id>: its value, in the ad account's currency, as Meta reports it.

The common conversions and conversion_value columns are read from omni_purchase alone. etlmcp does not add a custom conversion's figures to them, even for one built on purchases, so read its own column. If Meta reports nothing for that custom conversion on an ad and day, the row is left empty in that column; etlmcp does not write a zero Meta did not send. The rest of the extra columns are explained in Meta's extra.actions columns.

Match the ID to a name

etlmcp does not read custom conversion names from Meta, so the name has to come from your Meta account.

  • In Events Manager: choose Custom conversions in the menu at the top left. If you have access only to the ad account, not its business portfolio, you see only the custom conversions that ad account created.
  • Through the Marketing API: the customconversions edge of the ad account returns each custom conversion with its id and name, among other fields such as its rule, its pixel and whether it is archived. The id is the number in the column name.

When the ID changes

Because the column is named by ID, renaming a custom conversion in Events Manager leaves your column as it is. Three things in Meta's help center do affect your columns:

  • You can change a custom conversion's name, description and value, but not its rules. A different rule means a new custom conversion, with a new ID and a new column.
  • Changing the conversion value applies to conversions from then on, so extra.action_values can change level partway through your history.
  • Meta archives a custom conversion that is inactive or not received for two years. To bring it back you create a new one with the same rules, which again means a new ID.

Give the column a readable name

Add a Rename rule to the pipeline's transform. In the rule editor, a Rename line takes old -> new pairs separated by commas:

extra.actions.offsite_conversion.custom.<id> -> trial_signups, extra.action_values.offsite_conversion.custom.<id> -> trial_signup_value

Write the real ID in place of <id>. The rule moves each value out of extra into a column with the new name, and the destination receives only the new name. Filter and Derive expressions accept the dotted extra names too, so you can compute a cost per custom conversion from the original column. An extra name the row lacks reads as empty, and dividing by an empty or zero value gives an empty result, not an error.

What changes after the rename

  • Rules run when a run delivers, on the stored rows. Your stored data keeps the original names, and so do query_data answers, which return rows before any pipeline's rules. To ask an assistant for the column, name it in full, extra.actions.offsite_conversion.custom.<id>, among the fields it requests.
  • A rename takes effect on the next run that delivers. How rules are ordered and checked is on transform rules.
  • PostgreSQL takes each run's date range: rows of earlier days keep the value under the old extra name until a run delivers those days again.
  • If the pipeline already writes to a PostgreSQL table, etlmcp adds new extra columns to it by itself but not a column a rename creates, so delivery stops with an error naming the missing column. Add that column to the table yourself, or point the pipeline at a new table, which etlmcp creates with every column.
  • In PostgreSQL, an extra name over PostgreSQL's length limit is cut and given a suffix made from the full name, and the value column is the longer of the two. A short new name avoids that; see the PostgreSQL destination.
  • When you create a custom conversion to replace an archived or changed one, add its new ID to the rule.

Related

Sources

  1. Ads Action Stats — developers.facebook.com, checked
  2. Ad Account, Insights — developers.facebook.com, checked
  3. Custom Conversions — developers.facebook.com, checked
  4. About custom conversions for web — www.facebook.com, checked
  5. How to edit custom conversions in Meta Events Manager — www.facebook.com, checked
  6. Best practices for custom conversion setup in Meta Events Manager — www.facebook.com, checked