Unity plugin V4 integration guide for developers

At a glance: The AppsFlyer Unity Core Plugin enables app attribution and reporting for mobile apps developed on the Unity development platform. The plugin supports Android and iOS apps and is based on AppsFlyer SDK for mobile.


 Unity V6 beta plugin for iOS 14

A Unity plugin V6 beta is available, allowing app owners and developers to prepare for the major Apple iOS 14 release, in which app users need to opt-in for IDFA collection. The beta also includes significant API method changes from previous versions.

The beta plugin is open-source and available on GitHub. 

To update your plugin from an earlier (V4) version, see our guide on migrating to the V6 beta (requires removing/replacing the old plugin).

1. Overview - Unity V4

AppsFlyer Unity SDK V4 provides Android and iOS Unity projects with mobile app installation and event recording functionalities. Measure installs, sessions, and in-app events to evaluate ROI and app-user engagement levels.

Mobile apps developed on the Unity platform only need to integrate AppsFlyer's SDK once in order to support attribution installs for both Android and iOS generated apps.

This guide explains how to integrate AppsFlyer's SDK into your Unity code for use in iOS and Android apps.

1.1 SDK integration overview

Tab Content Result

[Mandatory] Integration

How to add and configure the SDK.

App dashboard shows:

  • New organic install
  • New non-organic install

Core APIs

How to use SDK core APIs to:

  • Measure in-app events
  • Measure revenue
  • Perform deep linking
  • Gather conversion data

App dashboard shows:

  • In-app events
  • Revenue

Ready to:

  • Perform deep linking

Additional APIs

How to implement and use optional APIs for:

  • Uninstall measurements
  • Referrals (user invite attribution)
  • Push notifications

Ready to:

  • Measure uninstalls
  • Referrals
  • User engagements with push notifications
  • Handle user privacy scenarios and more.

API reference

Quick SDK API reference for developers

1.2 SDK compatibility

AppsFlyer SDK supports:

  • Integration with Unity version 5 and later.
  • Google Play Install Referrer API starting from Unity plugin v4.16.0.
    • To use the new Referrer API, update the plugin to v4.16.0 or later.
Was this article helpful?



Please sign in to leave a comment.