Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: page leave #226

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

feat: page leave #226

wants to merge 3 commits into from

Conversation

cpacm
Copy link
Collaborator

@cpacm cpacm commented Feb 14, 2025

PR 内容

  1. 添加配置项 enablePageLeave:是否增加页面离开事件,事件为自定义事件,将包含页面名称,页面停留事件,页面路径属性。
  2. 页面离开事件逻辑:Activity 为 onResume -> onStop 生命周期期间;Fragment 为 onResume(onShow)-> onStop(onHidden)
  3. 页面无埋点不生效时,不产生页面离开事件。

测试步骤

请使用 SDK CDP 测试页面离开事件。

影响范围

是否属于重要变动?

其他信息

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant