Skip to main content

Installation

Quick start

Create a Nuxt plugin to initialize Outlit:
Configure your runtime config:
Add your public key to .env:

Tracking events

Track events using the provided instance:

Creating a composable

Create a reusable composable for a shorter setup:
Use in components:

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:
For server-side tracking, see the Node.js integration guide.

Activation event

Track your value milestone as an ordinary event once it succeeds:
Choose this event as your activation event in Outlit. The first matching event records activation once for each eligible resolved person and company, independently. Billing status comes from verified integrations such as Stripe. See Customer journey. The default autoTrack: "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:
Initialize without auto-tracking:

Environment variables

Configure environment variables:
Keep server environment variables out of client-side code. Only use OUTLIT_KEY in server API routes.

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