ChemPal Documentation - v1.7.0
    Preparing search index...

    Module helpers/analytics

    Functions

    trackEvent

    Sends one GA4 event to the /g/collect endpoint. No-op (and no network call) until a measurement id is configured in config.json (analytics). Text params go through as ep.<key> (truncated to GA4's limit), numeric params as epn.<key>. Never throws.

    trackRenderError

    Reports a React render-boundary crash to GA4 as a render_error event with a minimal, non-PII payload (app version, error name, truncated message — no stack traces or user input).