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

Make plugin work with segment.io 3.0.0 #16

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

Conversation

karolk
Copy link

@karolk karolk commented Nov 27, 2014

This code no longer tries to mock the analytics object, because when it happens the mock object doesn't get assigned the 'initialized' property correctly. This is also a deprecated flag in segmentio. Instead it uses the presence of analytics as signal to resend the queue of events and start proxying them to the library.

karolk and others added 6 commits November 26, 2014 16:17
do not rely on initialized flag, which is now deprecated
…is avoid keeping events stuck in the queue until the next segmentio method call
flush the queue of pending events when analytics script is loaded. Th…
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.

2 participants