Ninetailed
Search…
Getting Started
All Ninetailed Web-SDKs use the @ninetailed/experience.js SDK internally.
If you are using a Web Framework, which is not supported yet you can always fall back to the @ninetailed/experience.js library.

How to use it

1
import { Ninetailed } from '@ninetailed/experience.js';
2
3
const ninetailed = new Ninetailed(
4
{
5
// Your Ninetailed API Key - required
6
clientId: "...",
7
// Set this if you want to use another env as main. Defaults to main.
8
environment: "main",
9
// Defaults to false - set if you want to see Draft Audiences.
10
preview: false
11
},
12
{
13
// Use the Ninetailed Plugin system, e.g. privacy, preview Widget etc.
14
plugins: [],
15
// Passes a profile for SSR
16
profile: undefined,
17
// Translates Ninetailed provided Data like location into given locale
18
locale: "en-Us",
19
// The maximum loading time until the fallback (Baseline) will be shown
20
requestTimeout: 500
21
}
22
);
23
24
// send a pageview
25
ninetailed.page();
26
27
// send a track event
28
ninetailed.track();
29
30
// send a identify event
31
ninetailed.identify('userId', { firstname: "Louis" })
Copied!

What it does

The @ninetailed/experience.js library handles all communication between the Ninetailed Experience API & the browser for you. It makes very short integration times into any codebase possible.
  • Creating Pageview Track & Identify Events and send them to Ninetailed API
  • Taking care of Errors, Retries & Queuing
  • Handling Client-Side Cache
Copy link