Quick Start
The fast way
Run this from your project's root directory. No account needed first — it walks you through sign up, project creation, and wiring up the SDK, all in one go:
npx roaarrr-wizardIt opens a browser tab to sign up or sign in (no password touches your terminal), detects your framework (Next.js, Vite, React, Vue, Angular, or plain HTML), installs roaarrr-browser with whatever package manager your project already uses, and writes the API key to your env file. Re-running it later is safe — it won't duplicate anything already wired up.
Already have an API key? Skip the login step:
npx roaarrr-wizard --api-key YOUR_API_KEYManual setup
Prefer to wire it up yourself, or the wizard couldn't detect your setup:
- Sign up for a ROAARRR account
- Create a new project
- Copy your API key from the project settings
Install the ROAARRR SDK for your platform:
npm install roaarrr-browserThen initialize it:
import { analytics } from 'roaarrr-browser';
// Initialize ROAARRR
analytics.init('YOUR_API_KEY');
// Identify known users
analytics.identify({
identification: 'YOUR_UUID',
});
analytics.funnel('button_click', {
buttonName: 'signup',
page: 'homepage'
});For detailed information about each function, see the API Reference.