Installation
Quick start
Create a Nuxt plugin to initialize Outlit:.env:
Tracking events
Track events using the provided instance:Creating a composable
Create a reusable composable for a shorter setup:Identifying users
Identify users after authentication:Auth integration
With Nuxt Auth
With Supabase
Router integration
Track route changes:Server-side tracking
Track events from server API routes:Activation event
Track your value milestone as an ordinary event once it succeeds:Consent management
The defaultautoTrack: "auto" mode already keeps tracking off for visitors in regions that require opt-in consent (EEA, UK, Switzerland, or unknown); the example below uses autoTrack: false to wait for an explicit consent signal unless a previous opt-in is stored.
Handle user consent:
Environment variables
Configure environment variables:TypeScript support
Full TypeScript support is included:Next steps
Vue integration
Use Outlit with Vue 3
Server-side tracking
Track events from your backend
Identity resolution
Learn how visits and events link to people
npm package
Full API reference
