Overview

Median's Adjust Native Plugin enables you to track events and analytics by enabling the Adjust SDK. The app will register its installation and launch Adjust through the Adjust Android and iOS SDKs.

You can then use the Median JS Bridge to send events directly to Adjust.

🚧

Adjust Environment

Prior to publishing your app please confirm that the Adjust environment is set to AdjustConfig.EnvironmentProduction.

Initialization

There are 2 ways to initialize the Adjust plugin. Automatically, on app start or manually using a JS bridge method. You can select which way to use via the plugin settings.

To initialize the plugin manually use the following JS snippet

↔️Median JavaScript Bridge

// Initialize method takes an optional argument to enable or disable SKAN 
// This parameter is only relevant for iOS and will be ignored for Android

median.adjust.intialize(true | false)

Create an Event

You can send events to your Adjust instance as shown below.

↔️Median JavaScript Bridge

const adjustEvent = new AdjustEvent('abc123');
adjustEvent.setRevenue(0.01, 'EUR');
median.adjust.trackEvent(adjustEvent);

Get Attribution Information

When a user interacts with an Adjust link, their attribution information updates. You can get the current attribution info as below

↔️Median JavaScript Bridge

const adjustEvent = new AdjustEvent('abc123');
adjustEvent.setRevenue(0.01, 'EUR');
median.adjust.trackEvent(adjustEvent);

Additional information on event recording can be found on the Adjust SDK Documentation