Interface: TelemetryTransportConfig
Properties
endpoint
endpoint:
string
Fully-resolved ingest endpoint URL.
fetch?
optionalfetch?: {(input,init?):Promise<Response>; (input,init?):Promise<Response>; }
Fetch implementation. Defaults to the global fetch.
Call Signature
(
input,init?):Promise<Response>
Parameters
input
RequestInfo | URL
init?
RequestInit
Returns
Promise<Response>
Call Signature
(
input,init?):Promise<Response>
Parameters
input
string | Request | URL
init?
RequestInit
Returns
Promise<Response>
heartbeatIntervalMs?
optionalheartbeatIntervalMs?:number
Heartbeat cadence in ms while the tab is visible. Default 45000, floored at 15000.
includeNonProduction?
optionalincludeNonProduction?:boolean
Send from a local address or a non-production build too. Default false — a development
session would otherwise show up among the real shop's visitors.
sdkVersion?
optionalsdkVersion?:string
Optional client/build version label attached to the pageview.
sessionId?
optionalsessionId?:string
Correlation id for this visit. Defaults to a per-tab id kept in sessionStorage.
shopSlug
shopSlug:
string
Shop slug sent as X-Shop-Slug so the backend can attribute the visit to your shop.