AyolShop

@wocart/storefront v4.1.0


@wocart/storefront / index / TrackingHost

Interface: TrackingHost

What tracking needs of the page: its document, its pixel function, and a session store to fire a sale once.

Properties

document?

readonly optional document?: object

addEventListener()

addEventListener(type, listener): void

Parameters
type

string

listener

() => void

Returns

void

querySelector()

querySelector(selector): object

Parameters
selector

string

Returns

object

textContent

textContent: string

getAttribute()

getAttribute(name): string

Parameters
name

string

Returns

string


fbq?

readonly optional fbq?: unknown


sessionStorage?

readonly optional sessionStorage?: Pick<Storage, "getItem" | "setItem">