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

WIP feat(autotrack): view click event support #11

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

Conversation

YoloMao
Copy link
Collaborator

@YoloMao YoloMao commented Nov 22, 2024

No description provided.

@YoloMao
Copy link
Collaborator Author

YoloMao commented Nov 22, 2024

  • New SaaS、CDP: 支持元素点击事件 (VIEW_CLICK)
  • New SaaS、CDP、SaaS: 支持配置页面属性 growing_attributes
  • CDP: 修复 Flutter 侧传递点击事件到鸿蒙时,丢失 pageShowTimestamp 字段
  • 修复当返回 NavPathStack 首页时,未发送 Page 事件
  • 修复当应用从后台返回前台时,未发送基于 Navigation 的 Page 事件(基于 Router 会发)
  • 修复 GioKit Window 占用焦点导致 router 跳转等功能异常
  • GioKit 增加显示是否延迟初始化,是否正确集成无埋点

通过以下指令进行测试:

git clone --recurse-submodules https://github.com/growingio/growingio-sdk-harmonyos.git --branch feat/autotrack_click

Warning

该实现已知有以下弊端:

  • CDP: 如果当前 FrameNode (组件) 所在的 Page (页面) 未发送过页面浏览事件,则无法与内存缓存中的 lastPage 对应,在点击事件中 pageShowTimestamp 取值为当前时间

@YoloMao
Copy link
Collaborator Author

YoloMao commented Dec 16, 2024

配置页面属性

基于 router

router.pushUrl({
  url: path,
  params: {
    "growing_attributes": {
      "key1": "value1",
      "key2": 100
    }
  }
})

基于 Navigation

let name = 'pageA'
let destination = new NavPathInfo(name, {
  "growing_attributes": {
    "key1": "value1",
    "key2": 100
  } as Record<string, Object>
} as Record<string, Object>)
this.pageStack.pushDestination(destination)

@YoloMao
Copy link
Collaborator Author

YoloMao commented Dec 26, 2024

配置页面别名

基于 router

router.pushUrl({
  url: path,
  params: {
    "growing_alias": "home"
  }
})

基于 Navigation

let name = 'pageA'
let destination = new NavPathInfo(name, {
  "growing_alias": "home"
} as Record<string, Object>)
this.pageStack.pushDestination(destination)

@YoloMao YoloMao changed the title WIP feat(autotrack): view click/chng event support WIP feat(autotrack): view click event support Dec 26, 2024
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