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 better DX:
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

Mark activation after the user completes your product’s activation milestone:
Configure this ordinary event as your activation signal. Outlit Core derives activation, engagement, and inactivity; billing comes from verified integrations such as Stripe. See Customer Journey.
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 profiles are merged

NPM Package

Full API reference