You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@ViktorDanyliuk I think your issue looks pretty related to page changes. We'll discuss more internally about how to build the sendBeacon API into our SDK.
For the second issue (sendEvents not working after page load) - potential culprits might be the JS SDK not loading fully w/events before trying to send, or an issue with our logic using sendEvents publicly - we can investigate this separately.
Looks like
amplitude.logEvent
crashes if it's followed bywindow.location.raplace
, consider example:I have tried to call
this.$amplitude.getInstance().sendEvents()
on page startup but nothing happens, so I guess LocalStorage contains no events.Expected Behavior
Both events are successfully uploaded
Current Behavior
Second logEvent crashed.
Environment
"amplitude-js": "^7.4.4"
Chrome Version 89.0.4389.82 (Official Build) (x86_64)
The text was updated successfully, but these errors were encountered: