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

refactor: Add interval polling for Segment/Cohesion Identify ready #36

Merged

Conversation

julianajlk
Copy link
Member

@julianajlk julianajlk commented Nov 20, 2024

There is an issue where we call window.analytics before it's defined, even through the order of the Segment script is correct when the other Cohesion/RV related script is loaded.

Adding an interval and polling based on a timeout that if Segment analytics is not defined in 4 seconds, it will stop polling (to avoid polling indefinitely).

@julianajlk julianajlk force-pushed the julianajlk/EDX-1749/rv-eventing-delay-identify-script branch from b15a43e to aef8120 Compare November 20, 2024 16:12
@julianajlk julianajlk changed the title refactor: Add timeout polling for Segment/Cohesion Identify ready refactor: Add interval polling for Segment/Cohesion Identify ready Nov 20, 2024
@julianajlk julianajlk requested a review from grmartin November 20, 2024 17:59
@julianajlk julianajlk merged commit 6d02b3b into master Nov 20, 2024
4 checks passed
@julianajlk julianajlk deleted the julianajlk/EDX-1749/rv-eventing-delay-identify-script branch November 20, 2024 18:38
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.

3 participants