Configuration

Options passed to initialize():

projectIdrequiredYour project ID.
writeKeyrequiredSDK write key (safe to expose in the browser).
endpointTraceIQ API base URL.
releaseYour app version or build (e.g. a git SHA). Error tracking shows the release each error was first and last seen in, and lets you filter by it.
autoTrackPageViewsfalseSend a $page event automatically on initialize.
autoCaptureExceptionstrueCapture uncaught errors and unhandled promise rejections.
autoCaptureRageClickstrueDetect rage clicks (3+ rapid clicks in one spot).
maxRetries3Retries after a network error, 429 or 5xx, with exponential backoff. Sends wait while the browser is offline.
persistUndeliveredEventstrueKeep delayed events (offline or failed first attempt) in localStorage and resend them on the next page load. Up to 100 events for 24 hours.
propagateTraceHeaderssame-originSend a W3C traceparent on captured API calls so backend requests join the trace. Pass allowed cross-origin URLs, or false.
debugfalseLog SDK warnings to the console.