Skip to content

googleanalytics/AppsFlyerWrapperAndroid

Repository files navigation

Google Analytics for Firebase Wrapper for AppsFlyer

Copyright (c) 2019 Google Inc. All rights reserved.

The Google Analytics for Firebase wrapper for AppsFlyer allows developers to easily send information to both the AppsFlyer and Google Analytics for Firebase backends.

Using the Wrapper

In order to use the AppsFlyer wrapper:

  1. Follow the steps here to set up the Google Analytics for Firebase SDK in your app.
  2. Copy the source files inside the AppsFlyerWrapper directory into your project.
  3. Replace supported references to AppsFlyerLib.getInstance() with AppsFlyerLibWrapper.getInstance(), and references to AppsFlyerProperties.getInstance() with AppsFlyerPropertiesWrapper.getInstance().

Some methods are not supported by the wrapper. For these methods, directly call the base implementation in AppsFlyerLib.getInstance() or AppsFlyerProperties.getInstance().

Supported Methods

The following API methods and properties are supported in the AppsFlyer wrapper. Use the wrapper by replacing AppsFlyerLib.getInstance() in these instances with AppsFlyerLibWrapper.getInstance():

  • AppsFlyerLib.setAppUserId(id)
  • AppsFlyerLib.setCustomerUserId(id)
  • AppsFlyerLib.setCustomerIdAndTrack(id, context)
  • AppsFlyerLib.init(key, appsFlyerConversionListener, context)
  • AppsFlyerLib.startTracking(application)
  • AppsFlyerLib.startTracking(application, key)
  • AppsFlyerLib.startTracking(application, key, listener)
  • AppsFlyerLib.setCurrencyCode(currencyCode)
  • AppsFlyerLib.trackEvent(context, eventName, eventValue)
  • AppsFlyerLib.setDeviceTrackingDisabled(isDisabled)
  • AppsFlyerLib.setPreinstallAttribution(mediaSource, campaign, siteId)
  • AppsFlyerLib.setMinTimeBetweenSessions(seconds)

Use the wrapper by replacing AppsFlyerProperties.getInstance() in these instances with AppsFlyerPropertiesWrapper.getInstance():

  • AppsFlyerPropertiesWrapper.set(key, value)
  • AppsFlyerPropertiesWrapper.remove(key)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages