Traffic exclusions, product areas and the engagement score
## Retroactive traffic exclusions (P-H16)
Retroactive traffic exclusions (P-H16)
Project settings, "Retroactive traffic exclusions". A rule hides matching traffic from every web and product report at query time, so it also covers traffic that arrived before the rule, and disabling or deleting it brings that traffic back. Internal-traffic rules (G40) stay the ingest-time flag; exclusions are the reversible, retroactive layer on top.
Kind | Matches |
|---|---|
|
|
|
|
|
|
|
|
API (/v1/projects/{project_id}/traffic-exclusions): GET (?trash=true lists deleted rules), POST, PATCH /{id} {enabled}, DELETE /{id} (moves to the trash, returns the rule), POST /{id}/restore, POST /preview {rules, days} -> {events, sessions, persons, days}. At most 100 live rules per project.
How it applies: product reports drop matching events (AND NOT (rules) after is_internal = 0); session-based web reports drop every session with a matching event in the queried window. The web rollup fingerprint includes the rules, so precomputed days are recomputed under new rules, and the page breakdown reads raw events (not web_stats_daily) while any rule is active. Rules apply to the reports compiled by lc-query; the frustration, heatmap and replay listings keep their own filters.
Web property filters on every /web report (G61)
properties=<PropertyGroup JSON> (the quick filters carry it) now also limits time on page, content blocks, site search, search console, media, goals, directories, outbound clicks and custom dimension breakdowns: they keep the sessions with a matching event in the range.
Product areas (P-M1)
Data management, "Product areas": an area is events, saved actions and $pathname globs.
Filter: pick "Product area: <name>" in any filter bar; IR
{"type": "product_area", "key": "product_area", "op": "eq" | "neq", "value": "<area id>"}.Breakdown: source "Product area"; IR
{"type": "product_area", "key": "product_area"}(an event counts under the first area by name it belongs to).Report:
GET /v1/projects/{project_id}/product-areas/{id}/report?from=&to=&weeks=-> adoption (area users / active users), stickiness (mean daily area users / area users), weekly retention, rage / dead clicks in sessions that used the area.CRUD:
GET|POST /product-areas,GET|PUT|DELETE /product-areas/{id}(cursor by name).Dashboard widget
product_area(area_id,days).
Product Engagement Score (P-M2)
Flag events as core in Data management (event edit, "Core event"; PATCH .../event-definitions/{name} {is_core: true}, at most 100). GET /v1/projects/{project_id}/engagement-score?from=&to= returns score = (adoption + stickiness + growth) / 3, each 0 to 100: adoption = mean share of core events each active person used, stickiness = mean daily active / active in range, growth = quick ratio q = (new + recovered) / dropped against the previous period of the same length scaled 100 q / (1 + q) (100 when nobody dropped and someone came). Dashboard widget engagement_score.
Verify: cargo test -p lc-query traffic / product_area / engagement, LC_CH_URL=... cargo test -p lc-query --test it_clickhouse traffic_exclusions_areas.