Skip to main content
Fully automated. The CLI writes a composable and calls it in main.ts.

Install with the CLI

Pick Vue when prompted.

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 LucentTracker instance directly — the composable just guarantees a single instance.
  • To access the tracker from a component, import useLucent and call it — it returns the same singleton each time.