Install with the CLI
Manual setup
1
Environment variable
.env:2
Composable
src/composables/useLucent.ts:3
Initialize in main.ts
src/main.ts:Notes
- Vue doesn’t need a provider because tracking is handled by the
LucentTrackerinstance directly — the composable just guarantees a single instance. - To access the tracker from a component, import
useLucentand call it — it returns the same singleton each time.