HW3 — Module 10: Production Readiness
This page loads collector-v9.js, which adds three init-time gates — consent, bot detection, sampling — plus a retry queue, accurate time-on-page, and self-measurement via performance.mark().
1. Consent
2. Initialize collector (real embed-snippet path)
On page load this calls collector.init({ endpoint: '/collect' }) exactly like a real embed snippet would — consent, then bot detection, then sampling, checked in order.
navigator.webdriver is true and the real bot gate above correctly refuses to initialize — that's the feature working as designed, not a bug. Use the button below only to bypass both gates so the rest of the pipeline (timing, vitals, errors, retry queue, time-on-page) can still be verified end-to-end.3. Track events
4. Retry queue
Seeds a fake failed beacon directly into sessionStorage['_collector_retry'], then reloads. On the next init(), processRetryQueue() should drain it and actually send it — watch for a retry_test_seed entry in the Live Sent Log below after reload.
5. Time on page
Switching tabs or navigating away fires a page_exit beacon with accumulated visible time (not wall-clock time) — it will appear in the Live Sent Log if this page is still initialized when you leave.
6. Self-measurement
Live Sent Log
Nothing sent yet.