Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
YDL-Component-Medical
Overview
Overview
Details
Activity
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
杨凯
YDL-Component-Medical
Commits
882ea983
Commit
882ea983
authored
May 31, 2022
by
霍志良
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:同意拒绝埋点
parent
25a2479d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
5 deletions
+21
-5
UserBIConstants.kt
m-user/src/main/java/com/yidianling/user/constants/UserBIConstants.kt
+17
-5
SecretActivity.kt
m-user/src/main/java/com/yidianling/user/ui/login/SecretActivity.kt
+4
-0
No files found.
m-user/src/main/java/com/yidianling/user/constants/UserBIConstants.kt
View file @
882ea983
...
...
@@ -32,21 +32,33 @@ class UserBIConstants {
const
val
POSITION_ALIYUN_REGISTER_CLICK
=
"aliyun_register_click"
//阿里云第一次一键登录
const
val
POSITION_CODE_REGISTER_CLICK
=
"code_register_click"
//短信第一次登录
const
val
POSITION_FIRST_LOAD_AND_OPEN_CLICK
=
"activation_click"
//第一次安装并且第一打开
//随便逛逛点击
const
val
POSITION_LOOK_AROUND_CLICK
=
"look_around_click"
//登录主页浏览事件(包含随便逛逛)
const
val
POSITION_LOGIN_ONE_PAGE_VISIT
=
"login_main_one_page_visit"
//登录主页浏览事件(不包含随便逛逛)
const
val
POSITION_LOGIN_TWO_PAGE_VISIT
=
"login_main_two_page_visit"
//隐私授权页事件埋点
const
val
PRIVACY_AUTHORIZATION_CLICK
=
"privacy_authorization_page|privacy_authorization_click"
//百度监测 用户信息收集页面
const
val
COLLECT_USER_INFO_PAGE
=
"collect_user_info_page"
const
val
COLLECT_USER_INFO_PAGE_VISIT
=
"collect_user_info_page_visit"
//百度监测 用户信息收集页面--页面浏览事件
const
val
COLLECT_USER_INFO_SEX_MAN_CLICK
=
"collect_user_info_sex_man_click"
// (sign1存储状态(1代表选中,2代表取消),String) //百度监测 用户信息收集页面--性别男按钮点击
const
val
COLLECT_USER_INFO_SEX_FEMALE_CLICK
=
"collect_user_info_sex_female_click"
// (sign1存储状态(1代表选中,2代表取消),String) //百度监测 用户信息收集页面--性别女按钮点击
const
val
COLLECT_USER_INFO_NEXT_CLICK
=
"collect_user_info_next_click"
//百度监测 用户信息收集页面--下一步点击
const
val
COLLECT_USER_INFO_EXIT_CLICK
=
"collect_user_info_exit_click"
//百度监测 用户信息收集页面--退出点击
const
val
COLLECT_USER_INFO_PAGE_VISIT
=
"collect_user_info_page_visit"
//百度监测 用户信息收集页面--页面浏览事件
const
val
COLLECT_USER_INFO_SEX_MAN_CLICK
=
"collect_user_info_sex_man_click"
// (sign1存储状态(1代表选中,2代表取消),String) //百度监测 用户信息收集页面--性别男按钮点击
const
val
COLLECT_USER_INFO_SEX_FEMALE_CLICK
=
"collect_user_info_sex_female_click"
// (sign1存储状态(1代表选中,2代表取消),String) //百度监测 用户信息收集页面--性别女按钮点击
const
val
COLLECT_USER_INFO_NEXT_CLICK
=
"collect_user_info_next_click"
//百度监测 用户信息收集页面--下一步点击
const
val
COLLECT_USER_INFO_EXIT_CLICK
=
"collect_user_info_exit_click"
//百度监测 用户信息收集页面--退出点击
//百度监测 收集感兴趣话题页
const
val
COLLECT_TOPIC_PAGE
=
"collect_topic_page"
...
...
m-user/src/main/java/com/yidianling/user/ui/login/SecretActivity.kt
View file @
882ea983
...
...
@@ -8,7 +8,9 @@ import android.view.KeyEvent
import
com.ydl.ydlcommon.base.BaseActivity
import
com.ydl.ydlcommon.utils.SharedPreferencesEditor
import
com.ydl.ydlcommon.utils.StatusBarUtils
import
com.ydl.ydlcommon.utils.actionutil.ActionCountUtils
import
com.yidianling.user.R
import
com.yidianling.user.constants.UserBIConstants
import
com.yidianling.user.widget.SecretDialog
import
kotlinx.android.synthetic.main.user_activity_secret.*
...
...
@@ -58,6 +60,7 @@ class SecretActivity : BaseActivity() {
initStatus
()
user_secret_no_agree
.
setOnClickListener
{
ActionCountUtils
.
count
(
UserBIConstants
.
PRIVACY_AUTHORIZATION_CLICK
,
"拒绝"
)
if
(
null
==
secretDialog
)
{
secretDialog
=
SecretDialog
(
this
,
object
:
SecretDialog
.
OnSecretDialogListener
{
override
fun
onCancel
()
{
...
...
@@ -76,6 +79,7 @@ class SecretActivity : BaseActivity() {
}
user_secret_agree
.
setOnClickListener
{
ActionCountUtils
.
count
(
UserBIConstants
.
PRIVACY_AUTHORIZATION_CLICK
,
"同意"
)
agreeAction
()
}
...
...
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