Skip to content

Make it easier to collect & analytic data with different third party service.

License

Notifications You must be signed in to change notification settings

snowman-team/EventLogger

Repository files navigation

Snowball Android Design Library
Download

Make it easier to collect & analytic data with different third party service.

Installation

dependencies {
    // add dependency, please replace x.y.z to the latest version
    implementation "com.xueqiu.eventlogger:eventlogger:x.y.z"
    // if you use umeng analytics
    implementation "com.xueqiu.eventlogger:umeng:x.y.z"
}

Usage

Before you use the library, please read relevant documents.

Initialize the ELog in the proper place.

 val options = EventLogOptions()
    .isDebug(BuildConfig.DEBUG)
    .withLogger(xxxLogger)
ELog.init(this, options)

Then create the event.

val event = LogEvent(category, action, target, page, source)
event.extra = mExtra
ELog.log(this, event)

Umeng

Register the umeng analytics.

withHandler(UmengEventLogger(umengAppKey, installChannel))

Proguard

Umeng:

-keep class com.umeng.** {*;}

For more details, please read the example or source code.

About

Make it easier to collect & analytic data with different third party service.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages