Sales tracking for live chat
This sales tracking is for chatbot and live chat. Tracking related to product guides can be found under the Product guides tab.
<script>
window.Ebbot = {
botId: '<BOT ID>',
ovh: true / false,
tracking: true,
};
</script>
<script>!function(t){var e="init-js-widget";if(!t.getElementById(e)){var i=t.createElement("script");i.id=e,i.src="https://ebbot-v2.storage.googleapis.com/ebbot-web/init.js?t="+Math.random(),t.querySelector("body").appendChild(i)}}(document);</script>type EventType = 'ecom-atc' | 'ecom-purchase' | 'ecom-visit';
export type EventItem = {
id: string;
groupId?: string;
quantity?: number;
value: number | string;
};
export type Event<T extends EventType = EventType> = {
type: T;
} & (T extends 'ecom-atc'
? {
type: 'ecom-atc';
items: EventItem | EventItem[];
currency: string;
}
: T extends 'ecom-visit'
? {
type: 'ecom-visit';
items: EventItem | EventItem[];
}
: T extends 'ecom-purchase'
? {
type: 'ecom-purchase';
items: EventItem[];
currency: string;
}
: never);Last updated
Was this helpful?

