Trackingplan for Android SDK

Overview

Trackingplan for Android SDK

Table of Contents

Trackingplan

With Trackingplan for Android you can make sure that your tracking is going as you planned without changing your current analytics stack or code.

Trackingplan will monitor traffic between your app and data destinations and automatically detect any changes in your analytics implementation and warn you about inconsistencies like hit drops, missing properties, rogue events, and more.

Trackingplan is currently available for Web, iOS and Android. More clients will come soon.

Please request your TrackingplanId at trackingplan.com or write us to [email protected].

Add Trackingplan to your Android app

The recommended way to install Trackingplan for Android is by using Android Studio. Please, make sure your project targets API level 21 (Lollipop) or later.

First, add the Trackingplan dependency using Android Studio, like so:

In Android Studio, expand the Gradle Scripts section

image

Select the project-level build.gradle file and add com.trackingplan.client:adapter:1.0.4 as a classpath dependency to the dependencies section:

dependencies {   
    // ...
    classpath "com.trackingplan.client:adapter:1.0.4"
    // ...
}

After that, select the module-level build.gradle file and modify it as indicated below:

  • Add id 'com.trackingplan.client' to the plugins section.
plugins {
    // ...
    id 'com.trackingplan.client'
    // ...
}
  • Add implementation 'com.trackingplan.client:sdk:1.0.4' to the dependencies section.
dependencies {
    // ...
    implementation 'com.trackingplan.client:sdk:1.0.4'
    // ...
}

Then in the onCreate method of your Application's Main Activity, set up the SDK like so:

Trackingplan.init("YOUR TRACKINGPLAN ID GOES HERE").start(this)

And of course, import the SDK:

import com.trackingplan.client.sdk.Trackingplan;

All set!

Advanced options

Trackingplan for Android supports the same Advanced Options as Trackingplan for Web. For instance, to set a source alias and turn on debug mode use the following:

Trackingplan.init("YOUR TRACKINGPLAN ID GOES HERE")
    .sourceAlias("Android app")
    .enableDebug()
    .start(this)

Check the JS SDK's Advanced Options section for more details.

Additionaly, there is a dryRun option available to let you test Trackingplan for Android without actually sending any data to Trackingplan.

Building from source code

First of all, clone this repository to a local directory in your machine. After that, open a terminal in that directory and run:

$ ./gradlew cleanBuildLocalPublish

In order to use this custom built, modify your project-level build.gradle file as indicated below:

buildscript {
    repositories {
        // ...
        mavenLocal() // <-- Add maven local
    }

}

allprojects {
    repositories {
        // ...
        mavenLocal() // <-- Add maven local
    }
}    

Remember to change the version of Trackingplan in your dependencies to 1.0.0-SNAPSHOT.

Need help?

Questions? Problems? Need more info? Contact us at [email protected], and we can help!

Learn more

Visit www.trackingplan.com.

You might also like...
AWS SDK for Android. For more information, see our web site:

AWS SDK for Android For new projects, we recommend interacting with AWS using the Amplify Framework. The AWS SDK for Android is a collection of low-le

新浪微博 Android SDK

ReadMe 公告: 鉴于线上服务器出现问题,推荐下载本地aar后上传到自己公司的服务器,保证后续服务稳定, 我们也将尽快重新提供一个稳定的地址供大家使用。 新包地址:https://github.com/sinaweibosdk/weibo_android_sdk/tree/master/2019

Official Appwrite Android SDK 💚  🤖
Official Appwrite Android SDK 💚 🤖

Appwrite Android SDK This SDK is compatible with Appwrite server version 0.8.x. For older versions, please check previous releases. Appwrite is an ope

This App is sending Face capture data over network, built around the latest Android Arcore SDK.
This App is sending Face capture data over network, built around the latest Android Arcore SDK.

AndroidArcoreFacesStreaming From any Android phone ArCore compatible, using this app will send over TCP 5680 bytes messages: The first 5616 bytes is a

Desk360 Mobile Chat SDK for Android

Desk360 Chat Android SDK Introduction Desk360 Live Chat SDK is an open source Android library that provides live support to your customers directly fr

Storyblok Kotlin Multiplatform SDK sample (Android, JVM, JS)

storyblok-mp-SDK-sample *WIP* ... a showcase of the Storyblok Kotlin Multiplatform Client SDK. (Android, JVM, JS, iOS, ...) What's included 🚀 • About

A demo of Rongcloud uniapp sdk integration for compiling debug-apk in Android Studio

Rongcloud-uniapp-sdk-demo A demo of Rongcloud uniapp sdk integration for compiling debug-apk in Android Studio 这是一个为了给uniapp在Android平台打出debug-apk的demo

StreamPack: live streaming SDK for Android based on Secure Reliable Transport

StreamPack: live streaming SDK for Android based on Secure Reliable Transport (SRT) StreamPack brings the best audio/video live technologies together

Judo Android SDK

Judo Android SDK Requirements: Android SDK/API level: Android API 23 or later (it will install in apps with minSDK as low as 19, but rendering is only

Releases(1.3.0)
  • 1.3.0(Dec 1, 2022)

    Changes

    • Add JUnit support to integrate Trackingplan with Instrumented Tests

    • Update HTTP Example

    Breaking changes

    • Trackingplan.stop(context) doesn't require a context.

    Full Changelog: https://github.com/trackingplan/trackingplan-android/compare/1.2.8...1.3.0

    Source code(tar.gz)
    Source code(zip)
  • 1.2.8(Nov 16, 2022)

    What's changed

    • Customer.io support (with example)
    • Configurable tracks endpoint during SDK initialization
    • Configurable config endpoint during SDK initialization
    • Scoped tracks endpoint using TPID
    • Fix interception of custom headers when using HttpURLConnection

    Full Changelog: https://github.com/trackingplan/trackingplan-android/compare/1.2.7...1.2.8

    Source code(tar.gz)
    Source code(zip)
  • 1.2.7(Sep 13, 2022)

    What's changed

    • Intercept deprecated method setCurrentScreen in Firebase (https://github.com/trackingplan/trackingplan-android/commit/604f76ecbba63a84b106c7f9a7924058a9c6ad2c)

    Full Changelog: https://github.com/trackingplan/trackingplan-android/compare/1.2.6...1.2.7

    Source code(tar.gz)
    Source code(zip)
  • 1.2.6(Sep 7, 2022)

    What's changed

    • Support user attributes in Firebase interceptor (https://github.com/trackingplan/trackingplan-android/commit/1c3b206e822665957e94dd5e0cef7171bdbcb4df)

    Full Changelog: https://github.com/trackingplan/trackingplan-android/compare/1.2.5...1.2.6

    Source code(tar.gz)
    Source code(zip)
  • 1.2.5(Aug 30, 2022)

    What's changed

    • Make SDK compatible with experimental configuration cache in Gradle (https://github.com/trackingplan/trackingplan-android/commit/de43c4707dbd2a14bccd7ce85d92c2f4ebd8ca1f)
    • Improve logic to match requests to destinations (https://github.com/trackingplan/trackingplan-android/commit/a2e1ca4be08e034e6090b84b650f36c70776ac54)
    • Add ExoPlayer to the black list (https://github.com/trackingplan/trackingplan-android/commit/7f74d7666f3f16fce37525115a4f31ecc3e51fb7)
    • Publish the plugin marker when publishing to MavenCentral (https://github.com/trackingplan/trackingplan-android/commit/bdaac81ee4c1f54167d6e055bca6da10ef99c1e4)

    Full Changelog: https://github.com/trackingplan/trackingplan-android/compare/1.2.4...1.2.5

    Source code(tar.gz)
    Source code(zip)
  • 1.2.4(Aug 25, 2022)

    What's changed

    • Do not log "Request ignored" message when the Android SDK is disabled (https://github.com/trackingplan/trackingplan-android/commit/03de81eeb9ed6d21b78773b3f07a7aa9249010cb)
    • Improve instructions to disable Trackingplan (https://github.com/trackingplan/trackingplan-android/commit/74287acd281cbe381328915a4e20fd5e4bbe7640)

    Full Changelog: https://github.com/trackingplan/trackingplan-android/compare/1.2.3...1.2.4

    Source code(tar.gz)
    Source code(zip)
  • 1.2.3(Aug 9, 2022)

  • 1.2.2(Aug 8, 2022)

    What's Changed

    • Intercept requests from OkHttp3.
    • Add compatibility with Android Gradle Plugin 7.2.x.
      • Use Android Gradle Plugin 7.2.1.
      • Support transformClassesWith from Instrumentation API.
      • Remove support for transformClassesWith from Variant API.
    • Use Transform API by default in projects using AGP < 8 as the Instrumentation API still presents some issues. Note that the Instrumentation API can be opted-in by adding trackingplan.useAsmClassVisitor=true in the gradle.properties file.
    • Use App startup to initialize SDK before the main activity is created.
    • Queue intercepted requests even when the Android SDK is not yet configured.
    • Update examples to use the latest version of the Android Gradle Plugin.
    • Minor changes.
    Source code(tar.gz)
    Source code(zip)
  • 1.1.2(Aug 17, 2021)

Owner
Trackingplan
Making sure that your analytics work as you planned
Trackingplan
Segmenkt - The SegmenKT Kotlin SDK is a Kotlin-first SDK for Segment

SegmenKT Kotlin SDK The SegmenKT Kotlin SDK is a Kotlin-first SDK for Segment. I

UNiDAYS 0 Nov 25, 2022
Frogo SDK - SDK Core for Easy Development

SDK for anything your problem to make easier developing android apps

Frogobox 10 Dec 15, 2022
HubSpot Kotlin SDK 🧺 Implementation of HubSpot API for Java/Kotlin in tiny SDK

HubSpot Kotlin SDK ?? Implementation of HubSpot API for Java/Kotlin in tiny SDK

BOOM 3 Oct 27, 2022
AWS SDK for Android. For more information, see our web site:

AWS SDK for Android For new projects, we recommend interacting with AWS using the Amplify Framework. The AWS SDK for Android is a collection of low-le

AWS Amplify 976 Dec 29, 2022
Countly Product Analytics Android SDK

Countly Android SDK We're hiring: Countly is looking for Android SDK developers, full stack devs, devops and growth hackers (remote work). Click this

Countly Team 648 Dec 23, 2022
Android Real Time Chat & Messaging SDK

Android Chat SDK Overview Applozic brings real-time engagement with chat, video, and voice to your web, mobile, and conversational apps. We power emer

Applozic 659 May 14, 2022
Evernote SDK for Android

Evernote SDK for Android version 2.0.0-RC4 Evernote API version 1.25 Overview This SDK wraps the Evernote Cloud API and provides OAuth authentication

Evernote 424 Dec 9, 2022
Air Native Extension (iOS and Android) for the Facebook mobile SDK

Air Native Extension for Facebook (iOS + Android) This is an AIR Native Extension for the Facebook SDK on iOS and Android. It has been developed by Fr

Freshplanet 219 Nov 25, 2022
Android Chat SDK built on Firebase

Chat21 is the core of the open source live chat platform Tiledesk.com. Chat21 SDK Documentation Features With Chat21 Android SDK you can: Send a direc

Chat21 235 Dec 2, 2022
Liquid SDK (Android)

Liquid Android SDK Quick Start to Liquid SDK for Android This document is just a quick start introduction to Liquid SDK for Android. We recommend you

Liquid 17 Nov 12, 2021