Closed pacholoamit closed 1 week ago
Update: In progress,
Update: To transfer and make docs for adapter that weave support made
Steps:
Create a source called weaveEventListener
in sources
interface WeavePayload {
event: any
}
const weaveEventListener = (callback: (data: WeavePayload) => void) => {
document.addEventListener('weave-analytics-event', event => {
callback(event)
});
}
Create a weave adapter based on the weaveEventListener
const WeaveCartAdapter = () => {
weaveEventListener((data) => {
if (data === 'purchase')
}
}
Description
Add Weave cart adapter to mediajel-tracker