1.0.33 • Published 5 months ago
@segmentik/sdk-client v1.0.33
Segmentik SDK for Javascript
This library can be implemented only in the frontend, it is not for server use. Make sure you have an API key before integrating: 1. Register and login to the dashboard 2. Navigate on the sidebar to "Integration" 3. Copy the API Key
Getting started
npm i @segmentik/sdk-client
Usage:
import Segmentik from '@segmentik/sdk-client';
const sg = Segmentik.load({
apiKey: 'API-KEY-HERE'
});
sg.then(session => session.detect())
.then(data => console.log(data.detectionId, data.visitorId));
Alternatively, you can install from a CDN.
The SDK responds with detectionId
and visitorId
:
detectionId
- An identifier used for querying in the backend to get the full detection details (bot detection, spoof detection etc.)visitorId
- A unique and persistent identifier for the user
Requirements
- Node.js > 14
1.0.33
5 months ago
1.0.32
6 months ago
1.0.31
6 months ago
1.0.30
6 months ago
1.0.29
6 months ago
1.0.28
6 months ago
1.0.27
6 months ago
1.0.26
6 months ago
1.0.25
6 months ago
1.0.24
6 months ago
1.0.23
6 months ago
1.0.22
6 months ago
1.0.21
6 months ago
1.0.20
6 months ago
1.0.16
6 months ago
1.0.14
6 months ago
1.0.12
6 months ago
1.0.10
6 months ago
1.0.8
6 months ago
1.0.6
6 months ago
1.0.5
6 months ago
1.0.4
6 months ago
1.0.3
6 months ago
1.0.2
6 months ago
1.0.1
6 months ago
1.0.0
6 months ago