-
Notifications
You must be signed in to change notification settings - Fork 141
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
analytics.js firing events before clevetap can be initialized #740
Comments
Hi @sinhaayush7 , If it wasn't a customer who raised this issue you could still raise a Support ticket with the same information. If you could include the following in the email it would be useful:
Thanks you, |
@joe-ayoub-segment We have sent mail with the required links and steps to replicate the issue. Kindly look into it on priority. |
Copying my note from Slack here for posterity. hi Darshan and Sonam , thanks for raising the ticket. It will be a Customer Support Engineer who will respond to the ticket. I don't have permission to look at customer's Segment Workspaces. I did have a quick look at the customer's website and could see that Segment events were triggering Clevertap events. I didn't notice that there was a mismatch in the numbers. Another thing the customer could look into is to not trigger any Segment events until the Segment analytics.ready() function has fired. The ready() function only fires after the Destination JS libraries have completed loading. in this case it would mean that Clevertap's library would be loaded. |
Upon looking, we found that analytics.js is firing events (via analytics.track) before clevertap can be initialized.
t
requests are for segmenta?type=page
is the first request that is triggered on clevertap initializationFrom the screenshot, we can see that the request goes properly to the segment, but since clevertap is not initialized at that point, the events are being lost in the process.
Could you help us with a workaround for this?
The text was updated successfully, but these errors were encountered: