Quickstart
Install the Advaita SDK and send your first event in under five minutes. This guide uses the JavaScript SDK — swap the tab for Python or Node.js.
Prerequisites
- An Advaita account — sign up here
- A Project created in the dashboard (Settings → Projects → New Project)
- Your
API KeyandProject IDfrom the dashboard
Never expose your API key in client-side code. For browser SDKs use the public write-only key. For server SDKs use environment variables.
1. Install the SDK
2. Initialise
Create a single Advaita instance at your application's entry point and export it for use across your codebase.
3. Track your first event
Call track() with an event name and a properties object. Event names should be in snake_case. Properties can be any JSON-serialisable values.
Events are batched automatically and flushed every 5 seconds or when 20 events accumulate — whichever comes first. No manual flush needed in most cases.
4. Identify a user
Call identify() after a user signs in or signs up. This links all future events to that user's profile and enables cohort analysis.
5. Verify in the dashboard
Open your Advaita dashboard and navigate to Clickstream → Live Events. You should see your events appear within a few seconds.
Next steps
- Read Core Concepts to understand the event model, identity resolution, and sessions.
- Browse the SDK reference for your platform (JavaScript, Python, Node.js, Flutter).
- Explore funnels and retention with product analysis.
- Ask ACAI your first question in the AI Platform.
