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

Add support to pass target element with track call #51

Open
mmairs9-zz opened this issue Aug 16, 2017 · 1 comment
Open

Add support to pass target element with track call #51

mmairs9-zz opened this issue Aug 16, 2017 · 1 comment

Comments

@mmairs9-zz
Copy link
Contributor

Hi i submitted a PR which will pass the click element along with the track call. This is useful to us as we can default a lot of track metadata based on the type of element.

@morgs32
Copy link

morgs32 commented Aug 19, 2020

@mmairs9 we were having this issue too and ended up developing a more flexible api (we think) and even though your PR is years old, I wanted to post it here for posterity: https://github.com/stackshirts/react-capture-metrics
Basically you can pass whatever event data you want to analytics.track(name, {...props}).

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

No branches or pull requests

3 participants