Meta's clicks counts every click on an ad, of any kind, which Meta's rate and cost fields label "(all)": link clicks, but also reactions, comments, shares, profile clicks and taps that open media full screen. inline_link_clicks counts only clicks on links that lead to a chosen destination or experience, whether on Meta's apps or off them, and Meta measures it with a fixed 1-day-click attribution window. When the Meta connector is available, etlmcp puts Meta's clicks in your clicks column and keeps the link clicks beside it as extra.link_clicks. So the ctr and cpc etlmcp computes for a Meta row are the all-clicks figures, not link-click figures.
What each Meta field counts
Both fields come from the ad account Insights endpoint of the Marketing API:
| Meta field | What it counts | The rate and cost built on it |
|---|---|---|
clicks |
Every click on the ad, of any kind | ctr and cpc, which Meta labels "(all)" |
inline_link_clicks |
Link clicks that lead to a chosen destination or experience, inside Meta's apps or outside them | inline_link_click_ctr and cost_per_inline_link_click |
outbound_clicks |
Link clicks that send people away from Meta's apps | not requested by etlmcp |
A CTR built on all clicks counts interaction with the ad as well as visits to your destination, so it tells you less about traffic than a link CTR does.
Meta's Insights reference says "Inline link clicks use a fixed 1-day-click attribution window." Changing the attribution windows you choose for conversions does not change your link-click counts. The Meta attribution windows guide covers the windows that do apply to actions.
What etlmcp stores
When the connector is available, each Meta sync asks the Insights endpoint for impressions, clicks and inline_link_clicks at ad level, one row per ad per day, with no breakdowns. Each row then holds:
clicks: Meta'sclicks, all clicks on the ad.extra.link_clicks: Meta'sinline_link_clicks, as a whole number. When Meta leaves the field out of a row, etlmcp leaves that row's value empty rather than writing a zero, so a missing value and a real zero stay distinct.ctr:clicksdivided byimpressions, so Meta's all-clicks CTR. etlmcp stores it as a fraction (0.021), while Meta's ownctrfield is a percentage (2.1).cpc:costdivided byclicks, so the cost per click of any kind, not the cost per link click.
Computing a link CTR and a cost per link click
etlmcp computes no link CTR or cost per link click. Compute them from the stored columns:
- link CTR =
extra.link_clicks/impressions - cost per link click =
cost/extra.link_clicks
Sum the counts first and divide last. Averaging daily rates weights a day with ten impressions the same as a day with ten thousand. When a pipeline's transform has a group rule with the sum aggregate, etlmcp adds up clicks, impressions, cost and the numeric extra columns such as extra.link_clicks, then recomputes ctr and cpc from the summed all-clicks figures. It does not recompute a link rate, so take the summed extra.link_clicks and divide it by the summed impressions.
In PostgreSQL, the extra column keeps its dotted name, so quote it:
SELECT date,
SUM("extra.link_clicks")::float / NULLIF(SUM(impressions), 0) AS link_ctr,
SUM(cost) / NULLIF(SUM("extra.link_clicks"), 0) AS cost_per_link_click
FROM meta_ads
GROUP BY date
ORDER BY date;
In a CSV file the column header is extra.link_clicks as well.
Comparing CTR across platforms
etlmcp's clicks column is meant to hold whatever each platform counts as its main click, and those are not the same thing. The connectors' field descriptions in the code say what each one maps:
- Google Ads:
metrics.clicks - TikTok: destination clicks
- LinkedIn: chargeable clicks, which depend on the campaign objective
- Pinterest: paid Pin clicks (
CLICKTHROUGH_1) - Snapchat: swipe-ups
- Meta: all clicks
Because Meta's count includes more than link clicks, a Meta ctr normally sits above the link CTR of the same rows, and its cpc below the cost per link click. When you put Meta next to another platform, use the link CTR from extra.link_clicks if you are comparing link clicks, and say in the report which definition you used.
For the columns a Meta sync writes and how they map, see the Meta connector. Meta's action types, from leads to purchases, have their own columns, covered in Meta's actions columns.