Home
Quick start
Identifying users
Tracking events
Tracking groups

Technical Guides

Browser
Node.js
License
Sign in

Node.js API

Instant Insights from any Node app

Installing

To install the package from NPM into a server-side project, simply run:

1
npm install @june-so/analytics-next --save

Configuring

Now, you must configure the June SDK with a valid API key.

1
// Import June SDK:
2
import { AnalyticsNode } from '@june-so/analytics-next';
3
4
// Instantiate AnalyticsNode:
5
const [nodeAnalytics] = await AnalyticsNode.load({
6
writeKey: 'MY-KEY',
7
});
8
9
// Send a test event
10
await nodeAnalytics.track('Test Event Node');