Skip to main content

Installation

Quick Start

Initialize Outlit using an APP_INITIALIZER:
Configure your environment:
For production, create environment.prod.ts with your production key.

Creating a Service

Create a service for better DX:

Tracking Events

Inject and use the service in components:

Identifying Users

Identify users after authentication:

Router Integration

Track navigation with Angular Router:
If you set trackPageviews: true during init, pageviews are tracked automatically. The above example is only needed for custom pageview logic.

Auth Guard Integration

Track authentication events:

RxJS Integration

Track with observables:

Lifecycle Hooks

Track component lifecycle events:

Interceptor for API Tracking

Track API calls:
Register the interceptor:

Activation event

Track the ordinary event selected as your activation signal after the milestone succeeds:
Outlit Core derives activation from your selected ordinary event and derives engagement and inactivity from product activity. Billing comes from verified integrations such as Stripe. See Customer Journey.
Handle user consent:
Initialize without auto-tracking:

TypeScript Support

Full TypeScript support is included:

Next Steps

Server-Side Tracking

Track events from your backend

Identity Resolution

Learn how profiles are merged

NPM Package

Full API reference

React Integration

Use Outlit with React