Unity plugin V4 integration guide for developers

Unity.png

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.

 Note

  • AppsFlyer’s open-source Unity plugin V5 is currently available.
  • Effective March 1, 2020, AppsFlyer is deprecating legacy SDK versions prior to (not including) V4.16.4. Sunset notice.

Selecting the Unity plugin version

Select a Unity plugin based on the app lifecycle.
Current unity plugin version App lifecycle Recommended Unity plugin 
-- New app  V5 or later
4.16.4 or later Existing app Continue using current Unity plugin version
Prior to 4.16.4 (deprecated) Existing app with deprecated plugin Migrate to V5 or later

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

[Recommended]
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?

Comments

0 comments

Please sign in to leave a comment.