Queues a custom analytics event. Each event captures the canonical URL from
getURL(), the current page-count, an idempotency UUID, and any optional
JSON-serializable metadata you provide. Events accumulate in memory and are
flushed in batches of up to 10 items (or sooner on lifecycle events) using
navigator.sendBeacon() with a fetch keep-alive fallback.
Queues a custom analytics event. Each event captures the canonical URL from
getURL(), the current page-count, an idempotency UUID, and any optional JSON-serializable metadata you provide. Events accumulate in memory and are flushed in batches of up to 10 items (or sooner on lifecycle events) usingnavigator.sendBeacon()with a fetch keep-alive fallback.