Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.saytics.com/llms.txt

Use this file to discover all available pages before exploring further.

This guide walks you through creating a Saytics account, installing the JavaScript SDK, sending your first event, and confirming that the data appears in your dashboard. The whole process takes about five minutes.
1

Create your account

Go to app.saytics.com/signup and create a workspace. A workspace is the container for all your events, users, and dashboards. After signup, you land directly on your dashboard — no extra setup required.
2

Get your API key

Navigate to Settings → API Keys and copy your write key. You use this key to authenticate events sent from your app.
const SAYTICS_KEY = 'sk_live_YOUR_KEY_HERE';
3

Install the SDK

Add Saytics to your project using npm or by dropping a script tag into your HTML.
npm install @saytics/js
4

Initialize Saytics

Import and initialize the SDK with your write key. Call init() once, as early as possible in your application — typically at the top level of your entry file.
import Saytics from '@saytics/js';

Saytics.init('YOUR_WRITE_KEY');
5

Track your first event

Call Saytics.track() with an event name and any properties you want to attach. Property values can be strings, numbers, or booleans.
Saytics.track('User Signed Up', {
  plan: 'free',
  source: 'homepage'
});
6

View in dashboard

Open app.saytics.com, go to Events → Live feed, and you’ll see your event appear within a few seconds. Click any event to inspect its properties.
Events appear in your dashboard within a few seconds. If you don’t see them, check that your write key is correct.

Next steps

JavaScript SDK

Explore all SDK methods and configuration options.

Identify users

Link events to specific users with identify().

Events reference

Learn how events are structured and queried.