Przejdź do głównej zawartości

Interface: TelemetryTransportConfig

Properties​

endpoint​

endpoint: string

Fully-resolved ingest endpoint URL.


fetch?​

optional fetch?: {(input, init?): Promise<Response>; (input, init?): Promise<Response>; }

Fetch implementation. Defaults to the global fetch.

Call Signature​

(input, init?): Promise<Response>

MDN Reference

Parameters​
input​

RequestInfo | URL

init?​

RequestInit

Returns​

Promise<Response>

Call Signature​

(input, init?): Promise<Response>

MDN Reference

Parameters​
input​

string | Request | URL

init?​

RequestInit

Returns​

Promise<Response>


heartbeatIntervalMs?​

optional heartbeatIntervalMs?: number

Heartbeat cadence in ms while the tab is visible. Default 45000, floored at 15000.


includeNonProduction?​

optional includeNonProduction?: 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?​

optional sdkVersion?: string

Optional client/build version label attached to the pageview.


sessionId?​

optional sessionId?: 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.