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

page.track() not called within React method #42

Open
ghost opened this issue Apr 11, 2016 · 4 comments
Open

page.track() not called within React method #42

ghost opened this issue Apr 11, 2016 · 4 comments

Comments

@ghost
Copy link

ghost commented Apr 11, 2016

page.track() isn't called within a React method when using this package, but it works fine when loading the Segment script manually (i.e., pasting the script into the site header).

Meteor = 1.3.1
React = 14.8

@ghost
Copy link
Author

ghost commented Apr 11, 2016

I'm not sure what's going on, but it somehow resolved itself.

@ghost ghost closed this as completed Apr 11, 2016
@ghost ghost reopened this Apr 11, 2016
@ghost
Copy link
Author

ghost commented Apr 11, 2016

Actually, it does not work. Only works if I send the track event via windows.analytics instead of analytics.

@NaderIkladious
Copy link

I have the same problem and I suspect the reason is because when I use es6 imports
the imported instance does not have the same configuration defined somewhere else.

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
@NaderIkladious and others