This is is a tutorial on how to implement Blue Triangle's Analytics SDK for android on a new or existing app. In this tutorial, we cover how to set up tracker with your site prefix and how to set timers for fragments, actions, and asynchronous functions. We also mention how to set up page names and traffic segments for various timers.
The JCenter repo can be found here https://bintray.com/bluetriangle/Blue-Triangle-SDK/com.bluetriangle%3Aanalytics
Code for this tutorial is hosted here https://github.com/BlueTriangleMarketing/Blue-Triangle-SDK-Example
Documentation can be found here - Android SDK - Documentation PDF
Usage:
- In the project build gradle file add the following repository:
maven {
url "https://dl.bintray.com/bluetriangle/Blue-Triangle-SDK/"
}
2. In the app gradle add the following:
implementation 'com.bluetriangle:analytics:1.0.0'
3. Sync your project
4. Import tracker class to the main activity:
12. Field names for the custom variables:
CV1 - CV5 Maps to Custom Variable 1 - 5 in the portal
CV6 - CV10 Maps to Custom Category 1 – 5 in the portal
CV11 - CV15 Maps to Variable 6-10 in the Portal
CN1 - CN20 is Custom Numeric 1 - 20
Comments
0 comments
Please sign in to leave a comment.