Android
These are the instructions for the Hive SDK Android for setting up marketing attribution.
Adding marketing attribution¶
Add the external libraries needed to use Hive SDK marketing attribution to the module-level build.gradle file. Only add the attribution you will use. Below is an example of build.gradle.
dependencies {
// Analytics Provider, Add only the provider you use.
implementation "com.com2us.android.hive:hive-analytics-provider-adjust"
implementation "com.com2us.android.hive:hive-analytics-provider-appsflyer"
implementation "com.com2us.android.hive:hive-analytics-provider-firebase"
implementation "com.com2us.android.hive:hive-analytics-provider-singular"
}
Adding Firebase essential files¶
After registering your app on the Firebase console, download the google-services.json file here. Based on the file content, Firebase Analytics will be initialized. Download the file and include it in your Android Studio project.
Then, add the following code to the project-level Gradle file, build.gradle.
Add the Firebase Analytics dependency to the module-level build.gradle file.