Install by framework

One self-contained install page per framework: Next.js, React (Vite), Vue and Nuxt, SvelteKit, Astro, plain HTML and server Node.

Embed
Preview of the card
<a href="https://lucidace.com/help/install-by-framework"><img src="https://lucidace.com/help/_api/public/orgs/af34862a-c837-4478-8335-0505efe40459/spaces/2f4b888b-c4e6-488b-81bd-6e838fb12d2e/pages/237eb843-36ca-4da9-ad13-e16a6798565f/social-card.svg?v=3e7ae33eec8b" alt="Install by framework" width="600" height="315"></a>

Pick your framework. Each page covers the same steps in the same order: install the npm package, init with the project key, the CSP lines, the optional reverse proxy, consent, and how to check that the first event arrived.

Framework

Page

Next.js (App Router)

Install on Next.js

React with Vite

Install on React (Vite)

Vue 3 and Nuxt

Install on Vue and Nuxt

SvelteKit

Install on SvelteKit

Astro

Install on Astro

Plain HTML, no build step

Install on plain HTML

Node.js on the server

Install on server Node

Expo (iOS and Android)

Install on Expo

Browser extension (Chrome, Edge, Firefox)

Install in a browser extension

Other languages and mobile SDKs are in Install an SDK. Site builders such as Webflow, Wix and Squarespace use the plain-HTML snippet: see site builders.

What every browser page shares

You can also let the CLI write the init file: lucida init --framework <id> with next, react, vue, nuxt, sveltekit, astro, react-native, expo, wxt, plasmo, chrome-extension or node (the CLI). html prints the classic snippet instead.

Updated