DocsGetting StartedIntroduction
Getting Started with Ember
Welcome to Ember. This guide will walk you through setting up your account, installing the SDK, and sending your first event in under 5 minutes.
Quick Start
1
Create your account
Sign up at ember.app and create your first workspace. It only takes 60 seconds.
2
Install the SDK
Install the Ember SDK in your project using npm, yarn, or pnpm.
3
Initialize Ember
Import and initialize Ember with your API key from the dashboard.
4
Track your first event
Send your first event and watch it appear in your dashboard in real time.
Installation
Install the Ember SDK using your preferred package manager:
Terminal
# npm
npm install @ember/sdk
# yarn
yarn add @ember/sdk
# pnpm
pnpm add @ember/sdkBasic Usage
TypeScript
import { Ember } from '@ember/sdk';
const ember = new Ember({
apiKey: process.env.EMBER_API_KEY!,
});
// Identify a user
await ember.identify(userId, {
email: user.email,
name: user.name,
plan: 'growth',
createdAt: user.createdAt,
});
// Track an event
await ember.track('feature_used', {
feature: 'analytics_dashboard',
userId,
});💡
Pro tip
Initialize Ember as a singleton in your app entry point and export it for use across your codebase. For Next.js, create a lib/ember.ts file and import from there.