Commit 927fd095 authored by mengcuiguang's avatar mengcuiguang

添加csjlog

parent c4f6eee0
......@@ -32,6 +32,7 @@ object CsjAppLogManager {
config.isImeiEnable = false //建议关停获取IMEI(出于合规考虑)
config.isAutoTrackEnabled = false // 全埋点开关,true开启,false关闭
config.isLogEnable = BuildConfig.LOG_DEBUG // true:开启日志,参考4.3节设置logger,false:关闭日志
config.enableDeferredALink()
AppLog.setEncryptAndCompress(true) // 加密开关,true开启,false关闭
config.setEnablePlay(true) // 配置心跳事件(时长统计)
/**
......@@ -104,7 +105,7 @@ object CsjAppLogManager {
// 请在用户授权后调用如下方法,start 开始实际采集用户信息+上报:
AppLog.start()
// 在初始化后必须设置AppLog.setHeaderInfo("csj_attribution",1),否则会直接影响归因结果。
AppLog.setHeaderInfo("csj_attribution", 1)
AppLog.setHeaderInfo("csj_attribution",1)
} catch (e: Exception) {
e.printStackTrace()
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment