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 (ignoring subdirectories) into your project.
- Replace supported references to
[AppsFlyerTracker sharedInstance]
with[AppsFlyerTrackerWrapper sharedInstance]
;
Some methods are not supported by the wrapper. For these methods, directly call
the base implementation in [AppsFlyerTracker sharedInstance]
.
The following API methods and properties are supported in the AppsFlyer wrapper.
Use the wrapper by replacing [AppsFlyerTracker sharedTracker]
in these
instances with [AppsFlyerTrackerWrapper sharedTracker]
:
[[AppsFlyerTracker sharedTracker] registerUninstall:]
[[AppsFlyerTracker sharedTracker] trackEvent: withValue:]
[[AppsFlyerTracker sharedTracker] trackEvent: withValues:]
[AppsFlyerTracker sharedTracker].currencyCode
[AppsFlyerTracker sharedTracker].customerUserID
[AppsFlyerTracker sharedTracker].deviceTrackingDisabled
[AppsFlyerTracker sharedTracker].minTimeBetweenSessions
In order to use the AppsFlyer wrapper with a Swift project, make sure your
project has a
bridging header.
In the bridging header file, add the line #import "AppsFlyerTrackerWrapper.h"
.
This will allow you to use AppsFlyerTrackerWrapper like a normal Swift class.