Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
android_vediosocial
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
android
android_vediosocial
Commits
927fd095
Commit
927fd095
authored
Feb 06, 2025
by
mengcuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加csjlog
parent
c4f6eee0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
CsjAppLogManager.kt
...n/java/com/duben/loveplayletd/manager/CsjAppLogManager.kt
+2
-1
No files found.
video/app/src/main/java/com/duben/loveplayletd/manager/CsjAppLogManager.kt
View file @
927fd095
...
...
@@ -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
()
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment