Quick Start

Send your first event to Emp-Mix in under 5 minutes.

Prerequisites

  • You have created an Emp-Mix account.
  • You have your Public API Key (found in your Dashboard Settings).

Step 1: Install the SDK

Choose your platform and install the Emp-Mix SDK.

npm install @empmix/sdk-js

Step 2: Initialize & Track

Initialize the SDK with your API Key, and track your first event.

import EmpMix from '@empmix/sdk-js';

// 1. Initialize
EmpMix.init('YOUR_PUBLIC_API_KEY');

// 2. Track an Event
EmpMix.track('Signed Up', {
  plan: 'Trial',
  source: 'Google Ads'
});
You're done!
That's it! If you used an SDK, the event is queued and will be flushed to the server automatically.

Expected Result

Navigate to the Analytics tab in your Emp-Mix Dashboard. Within seconds, you should see the total event count increase, and the "Signed Up" event will appear in your Live Feed.

Common Errors

  • 401 Unauthorized: You used an invalid API Key, or you used your Secret Key instead of your Public API Key.
  • Event not showing up: If using an SDK, ensure the flush interval has passed (default 5-30s), or close the app to force a flush.
Last updated on June 4, 2026