@drupflare/spool - v0.1.0
    Preparing search index...

    Function ga4Requests

    • Groups held GA4 events by client, drops those past maxAgeMs and splits each client's events into requests of at most MP_MAX_EVENTS. Order within a client is the order held.

      Parameters

      • events: readonly BeaconEvent[]
      • now: number
      • maxAgeMs: number = GA4_RECOMMENDED_MS

      Returns Ga4Plan