---
schema_version: "1"
id: 1e9fef73cd64156f461fe94dae8769c9c4baadf9c367ef52c7499df901f3d8d6
title: Validator Responses in B2C Commerce Einstein
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/cc/264-0-0/b2c_einstein_validator_responses.md
canonical_url: https://help.salesforce.com/s/articleView?id=cc.b2c_einstein_validator_responses.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 4182555c0b9aca02d31d4f04bc30a2776447ec37372341c88264b57087e77665
description: 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.
products:
  - Commerce
  - B2C Commerce
release: "264"
---
# 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](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-cc-b2c_merchandiser_administrator-264-0-0-production-enus/ea76f372-6cfa-42a6-8e7c-05c6df7abed8/images/icon_note.png)

Note If you use Einstein with Page Designer, make sure your code is up to date. See this [GitHub Repository](https://github.com/SalesforceCommerceCloud/storefront-reference-architecture/pull/1139/files).

Tip: Visit [Salesforce B2C Commerce GitHub Repositories and Access](https://developer.salesforce.com/docs/commerce/b2c-commerce/guide/b2c-github-repo-access.html) for information about how to get access to the B2C Commerce repositories.

This table shows different events and when they typically occur.

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
      <colgroup>
        <col style="width:16.1%">
        <col style="width:83.89999999999999%">
      </colgroup>
      <thead class="slds-text-title_caps ">
        <tr class="">
          <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d160536e55">Event</th>
          <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d160536e58">When the event is expected to occur</th>
        </tr>
      </thead>
      <tbody>
        <tr class="">
          <td data-label="Event" class="slds-cell-wrap" style="vertical-align:top;" headers="d160536e55 ">viewProduct</td>

          <td data-label="When the event is expected to occur" class="slds-cell-wrap" style="vertical-align:top;" headers="d160536e58 ">
            <p>A shopper accesses a product detail page. This event enables recently
              viewed recommenders and recommenders that use the real-time personalization
              strategy.</p>
            <div class="slds-box slds-box_x-small slds-theme_shade slds-m-top_medium slds-m-bottom_medium">
              <div class="slds-media slds-media_responsive">
                <div class="slds-media__figure"><span class="slds-icon_container slds-icon_container_circle slds-icon-note-note"><img style="margin-bottom:0;" src="https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-cc-b2c_merchandiser_administrator-264-0-0-production-enus/ea76f372-6cfa-42a6-8e7c-05c6df7abed8/images/icon_note.png" alt="Note"></span></div>
                <div class="slds-media__body" style="padding-top:.5rem;padding-bottom:.5rem;"><span class="slds-text-title_caps">Note</span> Make sure to add the <code>isactivedatahead</code> tag to
                  the head tag.</div>
              </div>
            </div>
          </td>

        </tr>
        <tr class="">
          <td data-label="Event" class="slds-cell-wrap" style="vertical-align:top;" headers="d160536e55 ">viewReco</td>

          <td data-label="When the event is expected to occur" class="slds-cell-wrap" style="vertical-align:top;" headers="d160536e58 ">A shopper views a page containing a recommendation.</td>

        </tr>
        <tr class="">
          <td data-label="Event" class="slds-cell-wrap" style="vertical-align:top;" headers="d160536e55 ">clickReco</td>

          <td data-label="When the event is expected to occur" class="slds-cell-wrap" style="vertical-align:top;" headers="d160536e58 ">A shopper clicks recommendation.</td>

        </tr>
        <tr class="">
          <td data-label="Event" class="slds-cell-wrap" style="vertical-align:top;" headers="d160536e55 ">addToCart</td>

          <td data-label="When the event is expected to occur" class="slds-cell-wrap" style="vertical-align:top;" headers="d160536e58 ">A shopper adds a product to a cart.</td>

        </tr>
        <tr class="">
          <td data-label="Event" class="slds-cell-wrap" style="vertical-align:top;" headers="d160536e55 ">finishCheckout</td>

          <td data-label="When the event is expected to occur" class="slds-cell-wrap" style="vertical-align:top;" headers="d160536e58 ">A shopper places an order.</td>

        </tr>
        <tr class="">
          <td data-label="Event" class="slds-cell-wrap" style="vertical-align:top;" headers="d160536e55 ">viewCategory</td>

          <td data-label="When the event is expected to occur" class="slds-cell-wrap" style="vertical-align:top;" headers="d160536e58 ">A shopper views a category grid page.</td>

        </tr>
        <tr class="">
          <td data-label="Event" class="slds-cell-wrap" style="vertical-align:top;" headers="d160536e55 ">viewSearch</td>

          <td data-label="When the event is expected to occur" class="slds-cell-wrap" style="vertical-align:top;" headers="d160536e58 ">A shopper views the search results page with results.</td>

        </tr>
        <tr class="">
          <td data-label="Event" class="slds-cell-wrap" style="vertical-align:top;" headers="d160536e55 ">clickCategory</td>

          <td data-label="When the event is expected to occur" class="slds-cell-wrap" style="vertical-align:top;" headers="d160536e58 ">A shopper clicks through from a category grid page to a product detail
            page.</td>

        </tr>
        <tr class="">
          <td data-label="Event" class="slds-cell-wrap" style="vertical-align:top;" headers="d160536e55 ">clickSearch</td>

          <td data-label="When the event is expected to occur" class="slds-cell-wrap" style="vertical-align:top;" headers="d160536e58 ">A shopper clicks through from a search results page to a product detail
            page.</td>

        </tr>
      </tbody>
    </table>

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

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
      <colgroup>
        <col style="width:15.8%">
        <col style="width:31.5%">
        <col style="width:52.7%">
      </colgroup>
      <thead class="slds-text-title_caps ">
        <tr class="">
          <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d160536e176">Page</th>
          <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d160536e179">Description</th>
          <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d160536e182">Example</th>
        </tr>
      </thead>
      <tbody>
        <tr class="">
          <td data-label="Page" class="slds-cell-wrap" style="vertical-align:top;" headers="d160536e176 ">Product Details (PDP)</td>

          <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d160536e179 ">Verify that the product ID appears in the Integration Validator beside
            anchors on the Recommendations tab.</td>

          <td data-label="Example" class="slds-cell-wrap" style="vertical-align:top;" headers="d160536e182 ">
            <p>Example PDP slot tag:</p>
            <p style="margin-bottom:0;">
              <code>&lt;isslot id="pdp-you-may-like" description="PDP You May Like"
                           context="global" context-object="${pdict.Product}"/&gt;</code>
            </p>
          </td>

        </tr>
        <tr class="">
          <td data-label="Page" class="slds-cell-wrap" style="vertical-align:top;" headers="d160536e176 ">Category</td>

          <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d160536e179 ">Verify that the category ID appears in the Integration Validator beside
            anchors on the Recommendations tab.</td>

          <td data-label="Example" class="slds-cell-wrap" style="vertical-align:top;" headers="d160536e182 ">
            <p>Example category slot tag:</p>
            <p style="margin-bottom:0;">
              <code>&lt;isslot id="recomm-category-anchor" description="Product page
                           slot" context="global"
                           context-object="${pdict.ProductSearchResult.category}"/&gt;</code>
            </p>
          </td>

        </tr>
      </tbody>
    </table>