An open API service indexing awesome lists of open source software.

https://github.com/aditi3/react-native-capacitor-example

React Native Capacitor Example demonstrating usage of Adjust Cordova plugin.
https://github.com/aditi3/react-native-capacitor-example

Last synced: 3 months ago
JSON representation

React Native Capacitor Example demonstrating usage of Adjust Cordova plugin.

Awesome Lists containing this project

README

        

# React Native Capacitor Adjust Example

React Native Capacitor Example demonstrating usage of Adjust Cordova plugin.

## Add Adjust SDK to your project

```
npm install @awesome-cordova-plugins/adjust --save
npm add com.adjust.sdk
```

## Integrate Adjust SDK into your app

##### Import the Adjust SDK

```
import { Adjust, AdjustConfig, AdjustEnvironment, AdjustLogLevel, AdjustEvent } from '@awesome-cordova-plugins/adjust';
```

##### Create Adjust Config and track an event

```
var adjustConfig = new AdjustConfig("{YourAppToken}", AdjustConfig.EnvironmentSandbox);
Adjust.create(adjustConfig);

var adjustEvent = new AdjustEvent("g3mfiw");
Adjust.trackEvent(adjustEvent);
```