Skip to content

lqd-io/liquid-events-interceptor-android

Repository files navigation

Liquid Events Interceptor

Maven Central Mixpanel

Maven Central Localytics

Maven Central Google Analytics

Quick way to integrate Liquid basic analytics using your current mixpanel/localytics/google analytics integration.

Install

  1. Add the plugin to your buildscript's dependencies section:
classpath 'com.uphyca.gradle:gradle-android-aspectj-plugin:0.9.+'
  1. Apply the android-aspectj plugin:
apply plugin: 'android-aspectj'
  1. Add Liquid dependency
dependencies {
  // Your Dependencies
  compile 'io.lqd:liquid-android:+@aar'
}

Usage

Mixpanel

  1. Add mixpanel dependency:
compile 'com.onliquid:liquid-mixpanel:+@aar'
  1. Make sure that you initialize Liquid singleton before initializing mixpanel:
Liquid.initialize(this, "LIQUID_TOKEN", true);

MixpanelAPI.getInstance(this, "MIXPANEL_TOKEN");

Localytics

  1. Add localytics dependency:
compile 'com.onliquid:liquid-localytics:+@aar'
  1. Make sure that you initialize Liquid singleton before initializing localytics:
Liquid.initialize(this, "LIQUID_TOKEN", true);

registerActivityLifecycleCallbacks(
  new LocalyticsActivityLifecycleCallbacks(this, "LOCALYTICS_TOKEN")
);

Google Analytics

  1. Add Google Analytics dependency:
compile 'com.onliquid:liquid-googleanalytics:+@aar'
  1. Make sure that you initialize Liquid singleton before send data to google analytics
Liquid.initialize(this, "LIQUID_TOKEN", true);

Full integration

To use all the Liquid features please integrate our SDK.

We recommend you to read the full documentation.

Author

Liquid Data Intelligence, S.A.

License

Liquid is available under the Apache license. See the LICENSE file for more info.

About

Forward events to Liquid from mixpanel and localytics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages