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.
In order to use the AppsFlyer wrapper:
- Follow the steps here to set up the Google Analytics for Firebase SDK in your app.
- Copy the source files inside the AppsFlyerWrapper directory into your project.
- Replace supported references to
AppsFlyerLib.getInstance()
withAppsFlyerLibWrapper.getInstance()
, and references toAppsFlyerProperties.getInstance()
withAppsFlyerPropertiesWrapper.getInstance()
.
Some methods are not supported by the wrapper. For these methods, directly call
the base implementation in AppsFlyerLib.getInstance()
or
AppsFlyerProperties.getInstance()
.
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)