Unity plugin V4 [deprecated]

At a glance:  The Unity V4 plugin is deprecated. We recommend migrating to the Unity V6 plugin to fully enable app attribution and reporting for mobile apps developed on the Unity development platform. 


Migrating to Unity plugin V6

A Unity plugin V6 is available, allowing app owners and developers to support iOS 14. The V6 plugin also includes significant API method changes from previous versions. To update your plugin from an earlier (V4) version, requires removing/replacing the old plugin. See the full Unity V6 plugin integration guide for developers.

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?