Quickstart

Get Inslytic running in your app in under 5 minutes. This guide covers installation, initialization, and sending your first events.

1. Get an account

Contact sales to get your Inslytic account. Once it's set up, sign in at app.inslytic.com and copy the API key from the project settings page.

2. Install the SDK

Choose the SDK that fits your stack:

npm
# Browser (vanilla JS, any framework)
npm install @inslytic/sdk-browser

# React (includes browser SDK)
npm install @inslytic/sdk-react

# Node.js (server-side)
npm install @inslytic/sdk-node

3. Initialize

Call init() once when your app loads:

Browser
import { init, track } from "@inslytic/sdk-browser";

init({
  apiKey: "your-api-key",
  // endpoint defaults to https://api.inslytic.com
});

// Page views are tracked automatically — no manual calls needed

4. Track events

Use track() to capture user actions:

// Track a custom event
track("signup_completed", {
  properties: { plan: "growth", source: "landing_page" },
});

// Track a button click
track("button_clicked", {
  properties: { button: "upgrade", location: "header" },
});

5. Identify users

Once a user logs in, call identify() to link their anonymous session to a known identity:

import { identify } from "@inslytic/sdk-browser";

// After user logs in
identify("user-123");

6. View your data

Open your Inslytic dashboard to see events flowing in. The dashboard shows real-time visitor counts, pageviews over time, top pages, top events, funnels, retention cohorts, and individual user profiles.


Next steps