Validator Responses in B2C Commerce Einstein

When you navigate to a site that's using B2C Commerce Einstein features, Validator instantly validates recommendation activities and sorting rules. The tool then provides particular responses, based on the activity it registers.

We recommend that you test your storefront with the Recommendation Validator to verify expected operation. When Validator recognizes an event, an icon appears with the number of events it detected.

Note
Note If you use Einstein with Page Designer, make sure your code is up to date. See this GitHub Repository.

Tip: Visit Salesforce B2C Commerce GitHub Repositories and Access for information about how to get access to the B2C Commerce repositories.

This table shows different events and when they typically occur.

Event When the event is expected to occur
viewProduct

A shopper accesses a product detail page. This event enables recently viewed recommenders and recommenders that use the real-time personalization strategy.

Note
Note Make sure to add the isactivedatahead tag to the head tag.
viewReco A shopper views a page containing a recommendation.
clickReco A shopper clicks recommendation.
addToCart A shopper adds a product to a cart.
finishCheckout A shopper places an order.
viewCategory A shopper views a category grid page.
viewSearch A shopper views the search results page with results.
clickCategory A shopper clicks through from a category grid page to a product detail page.
clickSearch A shopper clicks through from a search results page to a product detail page.

Confirm that anchors are properly populated with the context-object attribute.

Page Description Example
Product Details (PDP) Verify that the product ID appears in the Integration Validator beside anchors on the Recommendations tab.

Example PDP slot tag:

<isslot id="pdp-you-may-like" description="PDP You May Like" context="global" context-object="${pdict.Product}"/>

Category Verify that the category ID appears in the Integration Validator beside anchors on the Recommendations tab.

Example category slot tag:

<isslot id="recomm-category-anchor" description="Product page slot" context="global" context-object="${pdict.ProductSearchResult.category}"/>