Skip to main content

TrackingContext

@shopify/shop-minis-platform-sdk / components/TrackingPixel/TrackingContext

TrackingContextType

Methods

hasBeenTracked()

hasBeenTracked(id): boolean

Parameters
ParameterType
idstring
Returns

boolean

resetTracking()

resetTracking(): void

Returns

void

setTracked()

setTracked(id): void

Parameters
ParameterType
idstring
Returns

void


TrackingContext

const TrackingContext: Context\<TrackingContextType>


useTrackingContext()

useTrackingContext(): TrackingContextType

Returns

TrackingContextType