BloodHound

Additional

Language
Java
Version
1.0.5 (May 7, 2016)
Created
May 7, 2016
Updated
Oct 11, 2016 (Retired)
Owner
Jan Rabe (kibotu)
Contributor
Jan Rabe (kibotu)
1
Activity
Badge
Generate
Download
Source code

Blurb

BloodHoud

Tiny library for tracking screens and events with google analytics.

How to install

repositories {
    maven {
        url "https://jitpack.io"
    }
}
 
dependencies {
        compile 'com.github.kibotu:BloodHound:-SNAPSHOT'
}

How to use

  1. Initialize

     BloodHound.with(context, "trackingId")
             .enableDryRun(BuildConfig.DEBUG)
             .enableLogging(BuildConfig.DEBUG);
    
  2. Track Screens

     BloodHound.track("screen");
    
  3. Track Events

     BloodHound.track("screen", "category", "action", "label");
    

Options (defaults)

BloodHound.with(context, "trackingId")
        .enableExceptionReporting(false)
        .enableAdvertisingIdCollection(true)
        .enableAutoActivityTracking(false)
        .setSessionTimeout(300)
        .setSampleRate(100)
        .setLocalDispatchPeriod(300)
        .enableLogging(true)
        .enableDryRun(false)
        .setSessionLimit(500);

###License

Copyright 2016 Jan Rabe

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.