Skip to main content

Quick Start

Get started with Solute SDK in just a few steps. Choose your framework below.

Vanilla JavaScript / TypeScript

1. Import and Initialize

2. Track Events

3. Use Feature Flags

Next.js App Router

1. Wrap Your App with SoluteProvider

Create a client component wrapper:
Then use it in your root layout:

2. Use Hooks in Client Components

3. Server-Side Tracking

Environment Variables

Set up your environment variables:
Use NEXT_PUBLIC_ prefix for client-side environment variables in Next.js. Server-side variables don’t need the prefix.

Next Steps

Event Tracking Guide

Learn about tracking events, page views, and user actions

Feature Flags Guide

Set up feature flags and A/B testing

Next.js Integration

Deep dive into Next.js integration

Configuration

Explore all configuration options