# Lucida > Lucida is a digital experience and product intelligence platform: product analytics, session replay, heatmaps, experiments, feature flags and web analytics, over one HTTP API. The help pages below are site-relative. The full text of every page is in /llms-full.txt; the API is described by GET /v1/openapi.json on your Lucida host. ## Account - [Account team and customer tasks](/help/account-team-and-tasks): Both live on an account's page (Groups -> an account) and in the API under the group /v1/projects/{p}/groups/{typeindex}/{key}/.... Reading needs person... ## Analytics - [Session definition](/help/session-definition): Each project decides how visits are cut into sessions. The same rule runs in three places, so client and server agree on session ids: - [Data views](/help/data-views): A data view is a named, curated view of a project for a team (Data > Data views): - [Analytics limits and how to work within them](/help/analytics-limits): These are deliberate bounds of the query and insight features, not bugs. Each one says why it exists and what to do instead. - [Form responses by form and experiment arm](/help/form-responses): Report external form submissions by form id and compare response rate across experiment arms with the Form responses dashboard template. - [Materialized properties](/help/materialized-properties): Event properties are stored as JSON, so a filter or breakdown on a custom property parses that JSON for every row it scans. A materialized property is a... - [Conversion paths and budget planning](/help/marketing-attribution): Both live on the web analytics Attribution page (tabs Conversion paths and Budget planning) and use the page's conversion settings: a conversion event or... - [Traffic exclusions, product areas and the engagement score](/help/traffic-exclusions-and-product-areas): ## Retroactive traffic exclusions (P-H16) - [Agent analytics](/help/agent-analytics): Product analytics for the AI agents and chatbots you ship to your users: how many people use the agent, what they ask, whether conversations get resolved,... - [Tracking-plan branches](/help/tracking-plan-branches): A branch is a draft copy of a tracking plan. Change it without touching what the worker validates against, get it reviewed, then merge it. Web: Data... - [Key-value store for ingest JS rules](/help/ingest-rule-kv): Ingest JS rules (transform(event)) can keep state across events and batches through a per-project key-value store: drop duplicates, count per user, remember... - [Queries and insights over the API](/help/query-api): Run a trends, funnel or retention query and save it as an insight with the REST API, with copy-paste bodies and the query JSON schema. - [Cohorts and actions over the API](/help/cohorts-actions-api): Create dynamic cohorts and actions with the REST API: the criteria tree, windows and step shapes, with copy-paste examples. - [Alerts on insights](/help/alerts): Create an alert on a trend, funnel or retention insight, replay it with simulate, pick a check interval and notification channels, and see when it fires. - [Web analytics over the API](/help/web-analytics-api): GET /web/overview and /web/breakdown: parameters, every breakdown dimension, and what each metric means. - [Share links and exports](/help/share-links-exports): Create public share links for notebooks, insights, dashboards, replays, web reports and heatmaps, and export events, persons and groups as CSV. - [Run SQL over the API](/help/sql-api): POST /v1/projects/{project_id}/sql: request and response, the dialect, the tables you can read, the row cap, the time bound, the scope, variables and a recipe for per-person counts. - [Realtime and predictive cohorts](/help/realtime-predictive-cohorts): Add people to a cohort the moment their event arrives (realtime), or keep the people most likely to convert or spend in a cohort (predictive), with the options and API routes. - [SQL functions: AI, bot detection and masking](/help/sql-ai-bot-masking): aiClassify and embedText, isLikelyBot, getTrafficType, getBotName and friends, and how restricted properties are masked in SQL. - [Notebooks, subscriptions, health scores and accessibility reports](/help/notebooks-health-scores-accessibility): Write up findings in notebooks and share them, schedule email or Slack snapshots, score account health from usage, and find WCAG issues in recorded sessions. - [Weekly digest: what changed](/help/weekly-digest): Schedule a weekly email or Slack digest of new anomalies, concluded experiments and housekeeping findings, plus a week-over-week web report, from Subscriptions or the API. - [Tap heatmaps for app screens](/help/mobile-heatmaps): See where people tap on each screen of your iOS, Android, Flutter or React Native app: what is captured, how to pick a screen, and what sits behind the heat. - [Ad spend, ROAS and CPA by campaign](/help/ad-spend-roas-cpa): Connect Google Ads, Meta Ads, LinkedIn Ads or TikTok Ads, then read spend, ROAS, CPA and CAC by campaign or channel joined to your conversions, in the app, over the API and on a dashboard template. - [Attribution models](/help/attribution-models): The seven attribution models, their exact names for the API, and how each one splits credit across a person's touches before a conversion. - [Stripe revenue: MRR, churn and LTV](/help/stripe-mrr-churn-ltv): Connect Stripe and read MRR, new, expansion, contraction and churned MRR, ARR, ARPU and LTV, on the Revenue report, over the API and on a dashboard template. - [Account report template](/help/account-report): A ready-made dashboard for B2B accounts: active users per company, events by company, top accounts, new and dormant accounts, and feature adoption. ## Developer guide - [Developer guide: 0. Set up your shell](/help/developer-guide-set-up-your-shell): Define the lc helper, the API and capture hosts and the key variables every later call reuses. - [Developer guide: 1. Keys and authentication](/help/developer-guide-keys-and-authentication): Key types, scopes, environments, project keys, account keys, sessions versus keys, OAuth apps and the versioning header. - [Developer guide: 2. Organizations and projects](/help/developer-guide-organizations-and-projects): Orgs, creating projects, project routes, org administration and the routes only a session can call. - [Developer guide: 3. Sending data (capture host)](/help/developer-guide-sending-data): The capture host: batch and capture wire format, responses, identity, reserved properties, flag exposure events, limits, consent and the browser script contract. - [Developer guide: 4. Events, persons, groups and data management](/help/developer-guide-data-management): Events, persons, groups, definitions and the data catalogue, privacy and deletion. - [Developer guide: 5. Errors, pagination, rate limits, idempotency, async patterns, versioning](/help/developer-guide-errors-and-limits): Problem+json errors, cursor pagination, rate limits, idempotency, async patterns and API versioning. - [Developer guide: 6. Querying](/help/developer-guide-querying): The query endpoint, query building blocks, funnels, retention, SQL, saved queries and endpoints. - [Developer guide: 7. Insights, dashboards and notebooks](/help/developer-guide-insights-dashboards-and-notebooks): Saving queries as insights, dashboards, notebooks and sharing them. - [Developer guide: 8. People analysis](/help/developer-guide-people-analysis): Cohorts, actions, metrics, lifecycle, paths and other people analysis over the API. - [Developer guide: 9. Alerts, subscriptions, reports and exports](/help/developer-guide-alerts-and-exports): Alerts, subscriptions, scheduled reports, exports and share links. - [Developer guide: 10. Feature flags](/help/developer-guide-feature-flags): Create and evaluate feature flags: conditions, rollouts, payloads, exposure, scheduling and approvals. - [Developer guide: 11. Experiments](/help/developer-guide-experiments): Create, run and read experiments: metrics, exposures, power and results. - [Developer guide: 12. In-product experiences](/help/developer-guide-in-product-experiences): Guides, tours, announcements, early access and other in-product experiences over the API. - [Developer guide: 13. Session replay and heatmaps](/help/developer-guide-session-replay-and-heatmaps): Session replay ingest, search, retention, playlists and heatmaps over the API. - [Developer guide: 14. Web analytics, live view and Replay Vision](/help/developer-guide-web-analytics): Web analytics reports, the live view and Replay Vision over the API. - [Developer guide: 15. Integrations, webhooks, CLI and SDKs](/help/developer-guide-integrations-webhooks-cli-and-sdks): Connectors, destinations, warehouse sources, outbound webhooks, the CLI and the SDKs. - [Developer guide: 16. AI and agents](/help/developer-guide-ai-and-agents): The MCP server, agent runs and records, and the AI routes. ## Experiments and flags - [Flag governance: value schemas, custom fields, segment approvals, release automation, AI Config agents](/help/flag-governance): ## Value schemas (P-M12) - [Web experiment triggers, targeting sources and product recommendations](/help/web-experiment-triggers-and-recommendations): ## Activation triggers - [Experiment idea backlog](/help/experiment-ideas): Experiments > Experiment ideas (/experiments/ideas) is a board of hypotheses. An idea moves from Ideas to Scored to Ready, and then to Running and Done.... - [Interventions](/help/interventions): React while the person is still in the session: when an event (with event and person property conditions) or an existing action matches, an intervention... - [Profile API](/help/profile-api): A low-latency read of one person or group for personalization and AI agents: the properties you allowlist, computed traits, current cohort memberships and... - [Experiments over the API](/help/experiments-api): Create a metric and an A/B experiment with the REST API, with copy-paste bodies. - [Local flag evaluation in the Node SDK](/help/node-local-evaluation): Evaluate feature flags inside your Node server from downloaded definitions: the key it needs, how definitions refresh, what happens when a fetch fails, and how exposures are recorded. - [Experiment designs beyond A/B: bandits, switchback, geo-lift and more](/help/experiment-designs): Bandit and contextual (LinUCB) experiments, switchback, difference-in-differences, synthetic control and geo-lift, surrogate metrics, heterogeneity, power analysis and survival, with the API routes. - [Remote config: flag payloads as JSON settings](/help/remote-config): Create a remote_config flag, store a JSON payload (optionally encrypted), and read it from the browser, Node, Python and Go SDKs. - [Evaluate flags at the edge (Next.js middleware, Cloudflare Workers, Vercel Edge)](/help/edge-flags): Resolve the visitor and their flags on the edge, then hand them to the browser SDK as bootstrap so the first paint has no flag flicker. ## Getting started - [Install Lucida on your site](/help/quickstart): Create a project, copy its keys, add the browser SDK, identify signed-in users, group accounts, reset on sign-out, turn on replay and respect consent. - [Installing Lucida on Gatsby, Docusaurus, Framer, Bubble, Wix, Squarespace and Cordova](/help/site-builders): All of the web builders below use the same loader every other no-code integration uses: commands go on window.lucidaQueue and the async script lucida.js... - [Using the browser SDK in a browser extension (Manifest V3)](/help/browser-extension): Manifest V3 forbids remotely hosted code: an extension may only run scripts packaged with it. Extension pages also have no useful cookies. The SDK has an... - [Content Security Policy for the Lucida browser SDK](/help/csp): A site with a strict Content-Security-Policy must allow the hosts the SDK talks to. Below, https://lc.example.com stands for your apiHost (the gateway, or... - [Pinning the browser SDK version](/help/sdk-pinning): The npm package (@lucida-analytics/browser) is pinned by your lockfile like any dependency. This guide covers the classic script (lucida.js) that tag... - [Send events over HTTP](/help/capture-wire): The capture wire format: POST /v1/batch and /v1/capture, event fields, keys, timestamps, dedupe, limits and responses. - [Evaluate flags over HTTP](/help/flags-decide): The flags decide route POST /v1/flags on the capture host, plus flag kinds, condition filters, rollout and sticky behaviour. - [Developer guide: control Lucida from code](/help/developer-guide): Everything Lucida does, over HTTP, from one account API key: keys, organizations and projects, capture, data management, queries and SQL, insights and dashboards, cohorts and metrics, alerts and exports, flags, experiments, guides, replay, heatmaps, web analytics, connectors, webhooks, CLI, SDKs and MCP. Written so an AI agent can implement any of it end to end. - [API reference map](/help/api-reference-map): The most useful Lucida endpoints grouped by area, with method, path and the scope that opens them, plus where to get the full OpenAPI document. - [Install an SDK](/help/install-sdks): How to install each Lucida SDK today: npm packages from npm, every other language from its public GitHub repo until the registry release. - [Install the Lucida CLI](/help/install-cli): Download the lucida command-line tool for macOS, Linux or Windows, check it with lucida --version, and what it needs to log in. - [Project setup as code: lucida plan and apply](/help/plan-and-apply): Keep flags, metrics, experiments, cohorts and keys in a checked-in folder, preview the diff with lucida plan and converge with lucida apply. - [Run an end-to-end test against production](/help/test-against-production): Keep QA signups and test runs out of your numbers: flag test events with $internal, or erase the test users afterwards by distinct id. - [The Lucida Chrome extension](/help/chrome-extension): A first-party Manifest V3 extension with a live event inspector, the Lucida toolbar on any allowed site, and session replay without an SDK install. Load it unpacked; it is not on the Chrome Web Store yet. - [Autocapture reference (browser SDK)](/help/autocapture-reference): Every autocapture option of the browser SDK, the events and properties it sends, and how to turn rage clicks, dead clicks and scroll depth on or off. - [Serve Lucida from your own domain (reverse proxy)](/help/reverse-proxy): Proxy the browser SDK through a path on your domain with Next.js rewrites, Vercel, Cloudflare Workers or nginx, so ad blockers and strict networks do not break capture. - [SDK install status](/help/sdk-install-status): Every Lucida SDK with its registry package name, whether it is published yet, and where to install it from until it is. - [Lucida compared with PostHog](/help/lucida-vs-posthog): An honest comparison: where Lucida goes deeper than PostHog, what Lucida leaves to Watchtower and partner tools, and what overlaps. - [Migrate from PostHog](/help/migrate-from-posthog): Move flags, experiments, cohorts, actions, dashboards, insights, persons and event history from PostHog to Lucida with lucida import posthog, what maps and what does not, and what works when you point a PostHog SDK at Lucida. - [API versioning and deprecations](/help/api-versioning): Pin the API with the Lucida-Version header, what counts as a breaking change, and how deprecations are announced (Deprecation and Sunset headers, six months minimum). - [Rate limits](/help/rate-limits): The request limits per route family (capture, flags, query, management, MCP, sign-in), the RateLimit headers, and how to back off. - [Keep dev and prod apart](/help/dev-and-prod): Environments and projects: what is separate in each, how to keep development traffic out of production, and how to promote definitions with lucida pull, plan and apply. - [Plans and limits](/help/plans-and-limits): Free, Team and Business: prices, monthly quotas, how to upgrade or cancel, the 80% warning, what a 429 at the hard limit means, and where to see your usage. - [Problem types](/help/problems): Every problem+json type Lucida returns, what it means and what to do about it. The error type URL https://lucidace.com/help/problems# points at the matching section. - [Install by framework](/help/install-by-framework): One self-contained install page per framework: Next.js, React (Vite), Vue and Nuxt, SvelteKit, Astro, plain HTML and server Node. - [Install Lucida on Next.js](/help/install-nextjs): Add the Lucida browser SDK to a Next.js App Router app: packages, provider, first-party /ingest path, CSP, consent and a first-event check. - [Install Lucida on React (Vite)](/help/install-react): Add the Lucida browser SDK to a React app built with Vite: package, provider with only the key, CSP, optional proxy, consent and a first-event check. - [Install Lucida on Vue and Nuxt](/help/install-vue-nuxt): Add the Lucida browser SDK to a Vue 3 app or a Nuxt 3 app: packages, plugin or module with only the key, CSP, optional proxy, consent and a first-event check. - [Install Lucida on SvelteKit](/help/install-sveltekit): Add the Lucida browser SDK to a SvelteKit app: package, root layout with only the key, CSP, optional proxy, consent and a first-event check. - [Install Lucida on Astro](/help/install-astro): Add the Lucida browser SDK to an Astro site: package, a client script with only the key, CSP, optional proxy, consent and a first-event check. - [Install Lucida on plain HTML (no build step)](/help/install-html): Add Lucida to a site with no bundler using the classic script and the global lucida queue: snippet, CSP, optional proxy, consent and a first-event check. - [Install Lucida on server Node](/help/install-node): Send events from a Node.js server with @lucida-analytics/node: install, init with the key, request context, consent responsibility and a first-event check. - [Coming from PostHog, Amplitude or Mixpanel](/help/coming-from-other-tools): Where the capabilities you used in other analytics tools are in Lucida: groups, exports, cohort import, experiments, mobile, actions, destinations, SQL, alerts, revenue and project as code. ## Integrations and ai - [Integration recipes: Grafana, MoEngage, Retool, Segment device mode](/help/integration-recipes): Four ways to connect Lucida to tools you already run. Each one uses a public, documented surface; nothing here needs a custom build. - [MCP server](/help/mcp): Lucida speaks the Model Context Protocol, so AI clients (Claude Code, Claude Desktop, Cursor, VS Code, Windsurf, Zed, Codex) can query your analytics, read... - [AI providers (bring your own key)](/help/ai-providers): Lucida's AI features (the assistant, research, scouts, session summaries, Replay Vision, experiment drafts, workflow AI steps, semantic search) run on your... - [Account API keys](/help/account-api-keys): Account-level personal API keys act as you across organizations and projects, so a script, an agency tool or an AI agent can create orgs, projects and project keys. - [Push cohort joins and leaves to another tool](/help/cohort-changes-push): Use an audience sync with the messaging_generic connector to send who joined and left a cohort, signed and retried, to your own endpoint. - [Surveys and forms: use a forms partner](/help/surveys-and-forms): Lucida does not build surveys. A forms connector (FormFlow, Typeform) sends each completed response as a $survey_completed event, and a dashboard template reads it. - [Email, push and SMS: sync to your messaging platform](/help/messaging-platforms): Lucida does not send email, push or SMS. It syncs cohorts and events to Klaviyo, Braze, Customer.io, Iterable, OneSignal, Twilio and others, and imports delivery events back. - [Support tools: Zendesk, Intercom, Gleap and replay links](/help/support-tools): Lucida is not a help desk. It pulls Zendesk and Intercom activity into events, pushes people and tickets out, and hands the support widget a link to the visitor's session replay. - [Errors, logs, traces, LLM observability and web vitals: Watchtower](/help/watchtower): Watchtower, Lucida's sister observability product, owns errors, logs, traces, infrastructure, LLM observability and web vitals. How Lucida links to it, as far as the code goes. - [Batch exports: schedule events, persons, sessions and groups to your warehouse](/help/batch-exports): Create, run, backfill and monitor scheduled exports to S3, GCS, Azure, Postgres, Snowflake, BigQuery, Redshift and Databricks with the API, the CLI or the app, and the exact permissions each destination needs. - [Outbound webhooks](/help/outbound-webhooks): Get signed HTTP callbacks when flags change, experiments start or stop, alerts fire, cohorts recalculate or an export run fails; verify the signature, retries and the delivery log. - [Org admin API](/help/org-admin-api): Manage members, invites, roles, projects, audit, billing, SSO and SCIM tokens from a script or Terraform with an account key restricted to one organization. - [Terraform provider: manage flags, experiments, cohorts, keys and exports as code](/help/terraform): Install the Lucida Terraform provider, configure it with an API key and project, manage flags, experiments, cohorts, actions, alerts, keys, export schedules, connectors and traffic exclusions, import existing objects and read drift. - [NPS and rating responses from a forms partner](/help/nps-and-rating-responses): Send each survey answer as a $survey_response event and Lucida shows the NPS score, rating average, distribution and trend, split by any person property. Exact event shape, dedupe rule and copy-paste query bodies. - [Atlas: sign-up identity and the Atlas webhook receiver](/help/atlas): Use the Atlas user id as the cross-product person id, identify sign-ups from your server, and keep Lucida people in step with Atlas through a signed webhook. - [Referalli: referral attribution and conversions](/help/referalli): See referred visitors as the referral_program channel and record Referalli conversions as referral_converted events on the referred person. - [Chatly: support chat](/help/chatly): Connect Chatly from the catalog: chat events on the right person, and View replay and View person links on each conversation. - [Hermetica: email lists and triggers](/help/hermetica): Forward Lucida events to Hermeticor in real time and sync cohorts to Hermeticor lists with the Hermeticor destination: no fan-out code in your app. - [Forumulate: community and docs](/help/forumulate): What works with Forumulate today: Lucida's own help and docs are Forumulate spaces, and Lucida tracking can run on any site you build there. - [Seolyticize: SEO](/help/seolyticize): What works with Seolyticize today: Lucida web analytics and exports sit next to your SEO work; there is no connector. - [Sister platforms: Atlas, Referalli, Cookie Munch, Chatly, Hermetica, Forumulate, Seolyticize](/help/sister-platforms): One page per partner platform that works with Lucida, each with a short setup that is true today. - [Real-time destinations: filter, dry run, delivery log and replay](/help/real-time-destinations): Send only the events you choose to a webhook as they are ingested: filters, mapping, a dry run that renders the request, retries, the per-attempt delivery log, the dead-letter queue and replay, and what consent and internal traffic do. - [AI cost per person](/help/ai-cost-per-person): How LLM cost reaches Lucida from Watchtower, the $ai_run_cost event it becomes, and how to chart cost and tokens per person or cohort. ## Privacy and security - [Replay privacy](/help/replay-privacy): Inputs are always masked in replays. Everything below adds to that default, is configured per project in Project settings (admins), and is served to the... - [Outbound privacy: sensitive properties and deletion forwarding](/help/outbound-privacy): Two controls govern personal data that Lucida sends to other tools: sensitive-property enforcement decides which properties may leave, and deletion... - [Consent by location](/help/geo-consent): Geo consent defaults let one project start visitors from different places in different consent modes: opt-in where the law requires prior consent, opt-out... - [Tracker and cookie monitoring](/help/tracker-monitoring): Two tools share one scanner (go/internal/sitescan): a one-off CLI check and scheduled monitors. - [Object access control and access rules as code](/help/access-control): ## Which objects have their own access rules - [Login security](/help/login-security): ## New sign-in notice (always on) - [Cookie Munch consent](/help/cookie-munch): Let the Lucida browser SDK follow the visitor's Cookie Munch consent choices. - [Session replay configuration reference](/help/replay-config-reference): Replay options for the browser (canvas capture and masking, asset proxy, inline images) and the iOS, Android, React Native and Flutter SDKs. - [Replay console and network capture](/help/replay-console-network): Opt in to console output and network requests inside a session replay so developers can debug what a user saw. Off by default; credentials are always redacted. - [SCIM setup for Okta, Entra ID and Google](/help/scim-setup): Provision and deprovision members and role groups automatically from Okta or Microsoft Entra ID, and what to do with Google Workspace. ## Self hosting - [Self-hosting Lucida: Docker Compose, Helm and air-gapped](/help/self-hosting): Run Lucida on one machine with Docker Compose, on Kubernetes with the Helm chart, or on a network with no internet access.