Date of slack thread: 7/23/24
Anonymous: Hi all, need some help with the way statsig SDK handles events. So we are using the SDK to send events on purchase, but the purchase event count is not at par with our DB. A bit of investigation has pointed us out that the browser maybe cancelling the network calls when we navigate to a different route within the app. We can confirm that we are doing sending the event at the last bit before the page navigates to another event. Is this something the SDK handles or not. The rate of cancellation of statsig is not high, very rare we see that statsig’s call gets cancelled by browser, idk if statsig retries.
Tore (Statsig): The sdk does some best effort to try to hook into navigation events and persist events to statsig. How are you “sending the event at the last bit before the page navigates”?