Data views

A data view is a named, curated view of a project for a team (Data > Data views):

Embed
Preview of the card
<a href="https://lucidace.com/help/data-views"><img src="https://lucidace.com/help/_api/public/orgs/af34862a-c837-4478-8335-0505efe40459/spaces/2f4b888b-c4e6-488b-81bd-6e838fb12d2e/pages/005969a3-8829-433e-93cf-a7c3f85409d9/social-card.svg?v=3e7ae33eec8b" alt="Data views" width="600" height="315"></a>

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 through formatInView (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 (allocation most_recent | original, expiration session | 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

GET /v1/projects/{id}/data-views

cursor pagination

POST /v1/projects/{id}/data-views

project admin; {name, description, events, properties, labels, formats, attribution, persistence, team_ids, is_default, enforced}

GET/PATCH/DELETE /v1/projects/{id}/data-views/{view_id}

PATCH and DELETE need project admin

GET /v1/projects/{id}/data-views/active

{views, default_id, enforced_ids} for the caller

Updated