@99devco/analytics - v3.0.0
    Preparing search index...
    • Records a user-defined analytics event. Events are queued and periodically flushed using navigator.sendBeacon() with a fetch keepalive fallback.

      Parameters

      • event_name: string
      • Optionalevent_details: Record<string, unknown>

      Returns void

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