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

React Native 埋点探讨 #14

Open
rccoder opened this issue May 2, 2017 · 1 comment
Open

React Native 埋点探讨 #14

rccoder opened this issue May 2, 2017 · 1 comment

Comments

@rccoder
Copy link
Member Author

rccoder commented May 2, 2017

  1. 手动埋点

执行到部分逻辑的时候调用封装的接口

  1. 自动埋点
<View data-spm="123.33.3.33"></View>

可以封装需要点击的组件,在组件里面请求,传 data-spm 的 props

H5 的话可以拦截点击事件,计算 DOM 上的东西

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

No branches or pull requests

1 participant