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

    Type Alias Ga4Options

    what ga4Sink takes

    type Ga4Options = {
        apiSecret: string;
        debug?: boolean;
        fetch?: typeof fetch;
        maxAgeMs?: number;
        measurementId: string;
        now?: () => number;
    }
    Index
    apiSecret: string

    the Measurement Protocol API secret; it stays on the server and never reaches the page

    debug?: boolean

    post to /debug/mp/collect, which validates and returns messages without recording

    fetch?: typeof fetch
    maxAgeMs?: number

    events older than this are dropped and counted; default 48 hours, never past 72

    measurementId: string
    now?: () => number