Data views
A data view is a named, curated view of a project for a team (Data > Data views):
A data view is a named, curated view of a project for a team (Data > Data views):
Included events and properties. One per line;
prefix*matches by prefix; an empty list includes everything. The builders' event and property pickers only offer what the active view includes.Display names (
name = label) for events and properties, shown in the pickers and as funnel step names.Formats per property:
number,percent,currency:EUR(any ISO code),duration(seconds),date,bytes. Applied to funnel breakdown headings and available to every result view throughformatInView(apps/web/src/shared/data-view.ts).Defaults: the funnel breakdown attribution (
first_touch,last_touch,all_steps) a new funnel starts with, an attribution lookback (days) and property persistence (allocationmost_recent | original, expirationsession | person | days:N).
Who gets which view
The picker under the project switcher lists every view of the project plus "All data". The view a builder starts in is the caller's first team view, else the project default view (is_default, one per project). The choice is remembered per project in the browser.
A view marked enforced restricts the non-admin members of its teams (project owners and admins are exempt, API keys without a delegated user too): the picker only offers their enforced views, and POST /v1/projects/{id}/query (and dashboard tile runs) refuse with 400 a structured query that names an event or property outside every enforced view of the caller, a custom expression when every such view limits properties, or SQL. Property-level access rules still apply on top.
API (lc-api)
Route | Notes |
|---|---|
| cursor pagination |
| project admin; |
| PATCH and DELETE need project admin |
|
|