Getting started
35 pages
- Install Lucida on your siteCreate 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.8 min read
- Installing Lucida on Gatsby, Docusaurus, Framer, Bubble, Wix, Squarespace and CordovaAll 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...5 min read
- Using the browser SDK in a browser extension (Manifest V3)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...2 min read
- Content Security Policy for the Lucida browser SDKA 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...5 min read
- Pinning the browser SDK versionThe npm package (@lucida-analytics/browser) is pinned by your lockfile like any dependency. This guide covers the classic script (lucida.js) that tag...3 min read
- Send events over HTTPThe capture wire format: POST /v1/batch and /v1/capture, event fields, keys, timestamps, dedupe, limits and responses.10 min read
- Evaluate flags over HTTPThe flags decide route POST /v1/flags on the capture host, plus flag kinds, condition filters, rollout and sticky behaviour.7 min read
- Developer guide: control Lucida from codeEverything 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.4 min read
- API reference mapThe most useful Lucida endpoints grouped by area, with method, path and the scope that opens them, plus where to get the full OpenAPI document.11 min read
- Install an SDKHow to install each Lucida SDK today: npm packages from npm, every other language from its public GitHub repo until the registry release.3 min read
- Install the Lucida CLIDownload the lucida command-line tool for macOS, Linux or Windows, check it with lucida --version, and what it needs to log in.2 min read
- Project setup as code: lucida plan and applyKeep flags, metrics, experiments, cohorts and keys in a checked-in folder, preview the diff with lucida plan and converge with lucida apply.5 min read
- Run an end-to-end test against productionKeep QA signups and test runs out of your numbers: flag test events with $internal, or erase the test users afterwards by distinct id.3 min read
- The Lucida Chrome extensionA 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.2 min read
- Autocapture reference (browser SDK)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.3 min read
- Serve Lucida from your own domain (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.4 min read
- SDK install statusEvery Lucida SDK with its registry package name, whether it is published yet, and where to install it from until it is.4 min read
- Lucida compared with PostHogAn honest comparison: where Lucida goes deeper than PostHog, what Lucida leaves to Watchtower and partner tools, and what overlaps.2 min read
- Migrate from PostHogMove 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.6 min read
- API versioning and deprecationsPin 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).2 min read
- Rate limitsThe request limits per route family (capture, flags, query, management, MCP, sign-in), the RateLimit headers, and how to back off.2 min read
- Keep dev and prod apartEnvironments 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.2 min read
- Plans and limitsFree, 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.3 min read
- Problem typesEvery problem+json type Lucida returns, what it means and what to do about it. The error type URL https://lucidace.com/help/problems#<slug> points at the matching section.3 min read
- Install by frameworkOne self-contained install page per framework: Next.js, React (Vite), Vue and Nuxt, SvelteKit, Astro, plain HTML and server Node.1 min read
- Install Lucida on Next.jsAdd the Lucida browser SDK to a Next.js App Router app: packages, provider, first-party /ingest path, CSP, consent and a first-event check.7 min read
- Install Lucida on React (Vite)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.2 min read
- Install Lucida on Vue and NuxtAdd 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.3 min read
- Install Lucida on SvelteKitAdd the Lucida browser SDK to a SvelteKit app: package, root layout with only the key, CSP, optional proxy, consent and a first-event check.2 min read
- Install Lucida on AstroAdd 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.2 min read
- Install Lucida on plain HTML (no build step)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.3 min read
- Install Lucida on server NodeSend events from a Node.js server with @lucida-analytics/node: install, init with the key, request context, consent responsibility and a first-event check.4 min read
- Coming from PostHog, Amplitude or MixpanelWhere 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.3 min read
- Install Lucida on ExpoAdd Lucida to an Expo app with @lucida-analytics/expo: works in Expo Go, session replay in development and EAS builds, Expo Router screens.2 min read
- Install Lucida in a browser extensionAdd Lucida to a Manifest V3 extension for Chrome, Edge or Firefox: installs, updates and uninstalls, popup and content-script events, feature flags.2 min read