Check Out Our Menu For Our Latest Deals on Top Quality Cannabis
// DutchieEmbed.onAnalyticsEvent((data) =>
// calls the handler function every time there is an analytics event
// returns an unlisten method to clean up the handler
const unlisten = DutchieEmbed.onAnalyticsGAEvent((data) => {
console.log(data.event); // example: "ec:addImpression"
console.log(data.payload); /* example: [{
id: "abcdefghijk",
name: "Great Product",
category: "Flower",
variant: "Indica", position: 1
}] */
window.ga(data.event, data.payload) // Send events directly to Google Analytics
});
// stop listening by executing the return value:
// unlisten();