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

如何上报所需数据? #13

Open
vortesnail opened this issue Jun 5, 2020 · 2 comments
Open

如何上报所需数据? #13

vortesnail opened this issue Jun 5, 2020 · 2 comments

Comments

@vortesnail
Copy link

No description provided.

@vortesnail
Copy link
Author

比如某个点击事件,我想上报的数据中有某个 state 数据?

@l-hammer
Copy link
Owner

l-hammer commented Jun 5, 2020

@vortesnail 参考下 https://github.com/l-hammer/r-track/blob/master/docs/tracks/events/home.js#L33

export default {
  /* @param context 相当于 {...state, ...props} */
  22121(context, val) {
    trackAction("22121", {
      tamp: context.date,
      param: val
    });
  },
}

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

2 participants