AppsFlyer

AppsFlyer

This guide will help you integrate the AppsFlyer Native Plugin into your application to record app installations, in-app events, and custom events. This integration will allow you to evaluate ROI and user quality effectively.

1. Overview

The AppsFlyer Native Plugin provides functionalities for tracking app installations and recording in-app events. By leveraging this plugin, you can gain valuable insights into user behavior and the performance of your marketing campaigns.

2. Adding AppsFlyer to Your Project

2.1. Add AppsFlyer to Your Cart

  1. Navigate to the Plugin Section: In your project dashboard, go to the plugin section.
  2. Add AppsFlyer: Search for the AppsFlyer plugin and add it to your cart.
  3. Integrate the Plugin: Follow the prompts to integrate the AppsFlyer plugin into your project.

2.2. Configure AppsFlyer Settings

  1. Access AppsFlyer Settings: Go to the AppsFlyer settings within the plugin section of your dashboard.
  2. Enter Your Dev Key: Input your AppsFlyer developer key in the provided field.
  3. Save Settings: Save your configuration.
  4. Rebuild Your App: Take a rebuild of your application to apply the changes.

3. Setting Custom User ID

Setting a custom user ID allows you to uniquely identify users in your analytics and reporting.

Plain JavaScript (ES5)

const { appsflyer: AppsFlyer } = window.WTN;
 
AppsFlyer.setCustomerUserId("CUSTOM_USER_ID");

ES6+ Module Import

import { setCustomerUserId } from "webtonative/AppsFlyer";
 
setCustomerUserId("CUSTOM_USER_ID");

4. Logging Events

Logging events helps you track specific actions users take within your app, such as making a purchase or adding an item to the cart.

4.1. Log an Event

Event Name: The name of the event you want to log (e.g., "ADD_TO_CART").

Event Values: An object containing the details of the event (e.g., item name, quantity).

Plain JavaScript (ES5)

const { appsflyer: AppsFlyer } = window.WTN;
 
AppsFlyer.logEvent("ADD_TO_CART", {
  name: "Cadburry",
  quantity: 1
});

ES6+ Module Import

import { logEvent } from "webtonative/AppsFlyer";
 
logEvent("ADD_TO_CART", {
  name: "Cadburry",
  quantity: 1
});

5. Summary

By following the steps outlined in this guide, you can integrate the AppsFlyer Native Plugin into your application, configure it with your developer key, and start tracking custom user IDs and logging events. This will provide you with valuable data to evaluate your app's performance and user engagement.


media-icon
media-icon
media-icon
media-icon

â“’2024 Orufy Technologies All Rights Reserved.