web tracking: Add `TelemetricRedirect` component
Created by: efritz
This PR adds a TelemetricRedirect
component in client/web/src/tracking
that sends and waits for a user event to be logged before issuing a redirect. We currently batch event logs once per second, so issuing an event log directly before an external redirect is likely to loose the request to the backend. This PR solves this by immediately sending the event and awaiting on the promise before issuing the redirect.
Test plan
Tested by hand (in a larger change).
App preview:
Check out the client app preview documentation to learn more.