Background
Various events will be logged when users interact with the donor badge. Refer to the instrumentation plan.
Requirements
Technical
- "Return session" defined as: a page load by the same donor session token, more than 30 minutes after the previous session ended, within the 21-day window.
- to be clarified badge_tap_return_session(?) fires instead of (or in addition to, confirm with Data Engineering) badge_tap when the tap occurs in a return session.
- Write unit tests for each event asserting correct payload shape and correct session-type classification.
Acceptance Criteria
- All events related to interacting with the donor badge are instrumented according to the instrumentation plan. Note that exposure and page_visit events will be instrumented as part of T426780.