Skip to main content
Version: SDK 4.7.x

Set up the SDK

The justtrack SDK offers extensive tracking capabilities for attribution, events, and various other functionalities within your React Native application. In this guide, you'll learn to:

  • Add the justtrack SDK to your app
  • Copy your API token
  • Initialize JustTrackSdk

Add the SDK

You can install the justtrack SDK for React Native from npm using:

npm install react-native-justtrack-sdk --save

Copy your API token

Before integrating the justtrack SDK into your app, you need to obtain an API token. Follow our guide to find your token.

Instantiate the SDK

You first have to initialize the SDK with your API token. Only after initializing the SDK will you be able to call the methods to attribute the current user or send user events.

import * as JustTrackSdk from 'react-native-justtrack-sdk';

await new JustTrackSdk.JusttrackSdkBuilder(apiToken).initialize();