Adobe Commerce storefront events

When you install Adobe Commerce, storefront events are deployed to your site. These events capture data from shoppers' interactions on your site. When you install and configure SaaS-based Adobe Commerce features such as Product Recommendations, Live Search, or Data Connection the modules deploy behavioral data collection to your storefront for specific events. This mechanism collects anonymized behavioral data from the events and help to power Product Recommendations and Live Search or in the case of Data Connection, send that behavioral data to the Adobe Experience Platform.

Publish, subscribe, and handle the storefront events

Adobe provides an eventing framework that you can use to programmatically access Adobe Commerce storefront events.

data-variant=info
data-slots=text
If you are using the Data Connection module, the module deploys the eventing framework for you. Learn more.

Available events based on module

The following section lists the events from which each module collects behavioral data.

data-variant=info
data-slots=text
Product Recommendations and Live Search also use other non-module specific events to populate dashboards, inform ranking strategies, and help Adobe Sensei interpret shopper data correctly.

Product Recommendations

The Product Recommendations module collects behavioral data from the following events:

Although Product Recommendation metrics are optimized for Luma storefronts, they also work with other storefront implementations:

Required dashboard events

The following events are required to populate the Product Recommendations dashboard.

data-variant=info
data-slots=text
If your dashboard does not display any statistics, ensure that the required events are implemented and being tracked on your site. See Verify event collection.
Dashboard column
Events
Join field
Impressions
page-view, recs-request-sent, recs-response-received, recs-unit-render
unitId
Views
page-view, recs-request-sent, recs-response-received, recs-unit-render, recs-unit-view
unitId
Clicks
page-view, recs-request-sent, recs-response-received, recs-item-click, recs-add-to-cart-click
unitId
Revenue
page-view, recs-request-sent, recs-response-received, recs-item-click, recs-add-to-cart-click, place-order
unitId, sku, parentSku
LT Revenue
page-view, recs-request-sent, recs-response-received, recs-item-click, recs-add-to-cart-click, place-order
unitId, sku, parentSku
CTR
page-view, recs-request-sent, recs-response-received, recs-unit-render, recs-item-click, recs-add-to-cart-click
unitId, sku, parentSku
vCTR
page-view, recs-request-sent, recs-response-received, recs-unit-render, recs-unit-view, recs-item-click, recs-add-to-cart-click
unitId, sku, parentSku

The following events are not specific to Product Recommendations, but are required for Adobe Sensei to interpret shopper data correctly:

Recommendation Type

This table describes the events used by each recommendation type.

Recommendation Type
Events
Page
Most Viewed
page-view, product-view
Product detail page
Most Purchased
page-view, place-order
Cart/Checkout
Most added to cart
page-view, add-to-cart
Product detail page, Product listing page, Cart, Wish List
Viewed this, viewed that
page-view, product-view
Product detail page
Viewed this, bought that
page-view, product-view
Product detail page, Cart/Checkout
Bought this, bought that
page-view, product-view
Product detail page
Trending
page-view, product-view
Product detail page
Conversion: View to purchase
page-view, product-view
Product detail page
Conversion: View to purchase
page-view, place-order
Cart/Checkout
Conversion: View to cart
page-view, product-view
Product detail page
Conversion: View to cart
page-view, add-to-cart
Product detail page, Product listing page, Cart, Wishlist

The Live Search module collects behavioral data from the following events:

Events used for ranking strategy

The following table describes the events used by Live Search ranking strategies.

Ranking Strategy
Events
Page
Most Viewed
page-view, product-view
Product detail page
Most Purchased
page-view, place-order
Cart/Checkout
Most added to cart
page-view, add-to-cart
Product detail page, Product listing page, Cart, Wish List
Viewed this, viewed that
page-view, product-view
Product detail page
data-variant=info
data-slots=text
Data collection for the purposes of Live Search does not include personally identifiable information (PII). All user identifiers, such as cookie IDs and IP addresses, are strictly anonymized. Learn more.

Required dashboard events

Some events are required to populate the Live Search dashboard.

data-variant=info
data-slots=text
If your dashboard does not display any statistics, ensure that the required events are implemented and being tracked on your site. See Verify event collection.
Dashboard area
Events
Join field
Unique searches
page-view, search-request-sent, search-response-received
searchRequestId
Zero results searches
page-view, search-request-sent, search-response-received
searchRequestId
Zero results rate
page-view, search-request-sent, search-response-received
searchRequestId
Popular searches
page-view, search-request-sent, search-response-received
searchRequestId
Avg. click position
page-view, search-request-sent, search-response-received, search-results-view, search-product-click
searchRequestId
Click-through rate
page-view, search-request-sent, search-response-received, search-results-view, search-product-click
searchRequestId, sku, parentSku
Conversion rate
page-view, search-request-sent, search-response-received, search-results-view, search-product-click, product-view, add-to-cart, place-order
searchRequestId, sku, parentSku
data-variant=info
data-slots=text
The product-view event is required when a user adds a product from the Product Detail Page (PDP). However, it is not required for conversion rate if a user adds a product directly from the search results page and completes checkout without visiting the PDP.

Required contexts

All events require the Page and Storefront contexts. This should happen at the page level/storefront application layer rather than when generating individual events. For example, in a PHP storefront, the PHP application container is responsible for setting them at runtime.

Usage

Here is a sample implementation of the search-request-sent event:

const mse = window.magentoStorefrontEvents;

/* set in application container */
// mse.context.page(pageCtx);
// mse.context.setStorefrontInstance(storefrontCtx);

/* set before firing event */
mse.context.setSearchInput(searchInputCtx);
mse.publish.searchRequestSent("search-bar");

Caveats

data-variant=info
data-slots=text
If Cookie Restriction Mode is enabled, Adobe Commerce does not collect behavioral data until the shopper consents to using cookies. If Cookie Restriction Mode is disabled, Adobe Commerce collects behavioral data by default.

Data Connection

The Data Connection module collects behavioral data from the following categories of events:

General

Profile

These events are also part of the Live Search collection of events.

B2B

Learn more about how Data Connection uses behavioral data.