App Tracker
Overview
The App Tracker enables users to monitor and analyze app activity by integrating a tracking SDK into their mobile applications. This guide provides detailed steps for setting up the tracker on both Android and iOS, configuring essential tracking events, and ensuring seamless data synchronization.
Android Tracker Setup
Prerequisites
Before setting up the Android tracker, ensure you have:
A valid tracker endpoint URL.
Access to your app's source code.
Permission to modify dependencies.
Step 1: Install the SDK
The Android Tracker SDK can be installed using Gradle. Add the following dependency in your build.gradle file:
Step 2: Initialize the Tracker
Once the tracker SDK is correctly set as a dependency, initialize it in your Application subclass:
Step 3: Verify the Tracker
To ensure that tracking is working correctly:
Run your app in a debugger.
Check logs for successful tracker initialization.
Verify events are being sent to the tracker endpoint.
iOS Tracker Setup
Prerequisites
Before setting up the iOS tracker, ensure you have:
A valid tracker endpoint URL.
Access to your app's source code.
Permission to modify dependencies.
Step 1: Install the SDK
Using Swift Package Manager
In Xcode, go to File > Swift Packages > Add Package Dependency, and add the following URL:
Using CocoaPods
If you are using CocoaPods, add this to your Podfile:
Then run:
pod install
Step 2: Initialize the Tracker
Set up the tracker in AppDelegate.swift:
Step 3: Verify the Tracker
To ensure tracking is working correctly:
Run your app and check for console logs confirming tracker initialization.
Use debugging tools to verify that tracking events are being sent.
Confirm that data is being received in your analytics dashboard.
Troubleshooting
Tracker not initializing? Ensure the correct tracker URL is used.
Events not firing? Verify tracker setup in logs and confirm events are being triggered.
Incorrect user data? Check that the correct user ID is being passed.
Slow performance? Ensure the tracker loads asynchronously and does not block app execution.
By following these steps, you can successfully integrate and validate the app tracker on both Android and iOS platforms.
Last updated