Available metrics for rule conditions
GET /api/v1/rules/available-kpis. 34 metrics accepted in rule conditions (19 universal + 15 Meta-only). Postback metrics fetched separately. Per-platform availability varies.
Written By Salvatore Sinigaglia
Last updated About 1 hour ago
GET /api/v1/rules/available-kpis. 34 metrics accepted in rule conditions (19 universal + 15 Meta-only). Postback metrics fetched separately. Per-platform availability varies.
Available metrics for rule conditions
Rules accept 34 metrics in a condition β 19 universal (all platforms) + 15 Meta-only (validated in
rule-validation.ts) β plus (cross-platform behind flag) 13 cross-platform metrics. The list is platform-aware viaGET /api/v1/rules/available-kpis(verified). Some metrics (postback-based) are fetched separately and lag 24-72h due to Meta API delays.
Who is this for
Anyone building rules and asking "what can I write in the condition?". Reference page for the rule builder.
How to view in the app
In the builder (Step 5 conditions), the metric dropdown is filtered to whichever platforms your scope targets. Hover for description + unit + example.
Platform metrics
Standard metrics fetched from each platform's insights API.
Reach + impressions
Engagement
Cost
Note:
bid_amount,daily_budget, andlifetime_budgetare not valid condition metrics β they are values you set, not performance metrics the evaluator can measure. Usebudget_spent_pct(below) for pacing conditions.
Conversions (postback / pixel)
Derived metrics
Computed from platform metrics β no extra API call. (The evaluator also accepts true_roas, break_even_roas, and projected_spend_pct as universal condition metrics.)
Cross-platform metrics (13)
Behind the ENABLE_CROSS_PLATFORM_RULES feature flag. For rules that span Meta + Google + TikTok + LinkedIn + Taboola in a single condition.
See rul-117 extensions.
Per-platform availability
Not every metric is available on every platform β the dropdown filters automatically.
Postback vs Meta-native metrics
Some conversion metrics are tracked two ways:
- Meta-native (
Meta purchases) β fast, immediate, but blocked by iOS 14.5+ ATT - Postback (
Wevion purchasesvia your commerce / tracker integration) β full data, but lag 24-72h
If a rule uses postback metrics: use longer time ranges (last_7d, not today) to let data settle. Otherwise rule will fire on incomplete data + cause whiplash decisions. See am-121 attribution.
Endpoint
GET /api/v1/rules/available-kpis (verified apps/backend/src/routes/api/rules.route.ts).
Query params:
platforms[]β limits result to platforms in scopeentity_levelβ campaign / adset / ad (some metrics differ per level)
Returns metric definitions: name, unit, description, available actions (e.g. budget metrics support increase_budget_pct).
Common mistakes
- Using postback metric with short time_range: data is incomplete; rule fires wrong. Use
last_7dminimum for postback metrics. - Using
frequencyon platforms that don't compute it identically: cross-platform comparison breaks. - Trying to use
daily_budget/bid_amountas a condition metric: these are not valid condition metrics (a rule targeting them can never match). Usebudget_spent_pctfor pacing conditions instead.
FAQ
How many metrics can I use in a Wevion rule condition?
Rules accept 34 metrics in a condition β 19 universal (all platforms) plus 15 Meta-only, per rule-validation.ts β and, behind the ENABLE_CROSS_PLATFORM_RULES flag, 13 cross-platform metrics. The available list is platform-aware via GET /api/v1/rules/available-kpis, so the builder dropdown filters to your scope. Note that daily_budget, lifetime_budget, and bid_amount are not valid condition metrics.
Why do conversion metrics like purchases and ROAS lag?
Because they're postback-fed. In Wevion, conversion metrics such as purchases and purchase_value come through your commerce or tracker integration and lag 24-72 hours due to Meta API delays. If a rule uses postback metrics, use longer time ranges like last_7d rather than today, so data settles and the rule doesn't act on incomplete data.
Are all metrics available on every platform?
No. Not every metric exists on every platform, so Wevion's metric dropdown filters automatically based on your scope. Meta offers the richest set including derived and postback metrics; Google Ads covers standard ads metrics plus conversions; TikTok has rich video metrics; Taboola and Snapchat expose a subset; LinkedIn a subset with no relaunch action.
What's the difference between Meta-native and postback conversions?
Meta-native metrics (like Meta purchases) are fast and immediate but blocked by iOS 14.5+ ATT, so they undercount. Postback metrics (Wevion purchases via your commerce or tracker integration) carry full data but lag 24-72 hours. For rules, prefer postback metrics with last_7d+ time ranges to avoid whiplash decisions on incomplete Meta-native data.
What are derived metrics in Wevion rules?
Derived metrics are computed from platform metrics with no extra API call β for example ROAS (purchase_value Γ· spend), CPA (spend Γ· purchases), CPL, CPR, profit, profit_margin, budget_spent_pct, cost_per_atc, conv_rate, AOV, engagement_rate, true_roas, break_even_roas, and projected_spend_pct. Profit uses the margin from your workspace settings. Use them in conditions just like platform metrics.