Insights shows how your deals perform inside Bento. If you also measure your store somewhere else, Bento tells your store about the same moments, so you can count them there too. There's nothing to switch on.
The events
| Event | When it happens |
|---|---|
bento_seen | A deal reached the customer's screen. |
bento_started | The customer made their first choice in a bundle. |
bento_completed | Every required choice in a bundle is made. |
bento_added_to_cart | The deal went into the cart. |
offer_viewed | An offer's message was shown. |
offer_qualified | The cart earned an offer's gift. |
offer_gift_added | The gift went into the cart. |
Every event says which deal it was:
deal_idanddeal_name: the deal, as you named it in Bento.deal_type:bundle,bulk,mix_and_matchoroffer.valueandcurrency: onbento_added_to_cartfrom a bundle or bulk deal, what was added before the saving, in the customer's currency.
Shopify customer events
This works with any tool. In your Shopify admin, go to Settings, then Customer events, and add a custom pixel. Inside it, listen for the events you want and pass them on:
analytics.subscribe("bento_added_to_cart", (event) => {
const deal = event.customData;
// Send it wherever you measure. Two examples:
gtag("event", "bento_added_to_cart", deal);
fbq("trackCustom", "BentoAddedToCart", deal);
});
Keep the line for the tool you use and remove the other. A custom pixel can only use a tool that the same pixel has loaded, so add these lines to the pixel where your Google or Meta tag already lives, or load the tag at the top of a new one. The same pattern works for Klaviyo, TikTok and anything else with a tracking call.
Google Tag Manager on your theme
If your theme has a dataLayer, Bento pushes each event to it. In Tag Manager, add a Custom Event trigger with the event's name, such as bento_added_to_cart. The deal's details are under bento, for example bento.deal_name.
Your theme's own code
A developer can listen on the page itself:
document.addEventListener("bento:event", (e) => {
console.log(e.detail.event, e.detail.deal_name);
});
Your customers' consent
Bento only sends these events for customers who accept analytics in your store's cookie banner, the same rule it follows for Insights. See Your data and Bento.