@99devco/analytics - v3.1.0
    Preparing search index...
    • 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.

      Parameters

      • event_name: string

        Event name (e.g., "cta_click")

      • Optionalevent_details: Record<string, unknown>

        Optional user-defined properties/object payload

      Returns void

      recordEvent("video_play", { id: "abc123", position: 0 });
      recordEvent("cta_click", { ctaId: "signup-hero" });