---
schema_version: "1"
id: 0c1412f23e8276544b1611cc2c64ddea4d23d0a104705834a19ea50f786383eb
title: Einstein Activities
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/commerce-cloud/einstein/guides/einstein-activities/einstein-activities-overview.md
canonical_url: https://developer.salesforce.com/docs/commerce/einstein-api/guide/einstein-activities-overview.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: dede6d8967bd1d9b6710e3dedb3144699bedb558bfd00b6d32ae526eb49d383c
products:
  - B2C Commerce Einstein API
  - Salesforce APIs
---
# Einstein Activities

Send Einstein-related site activities to enhance the customer experience.

---

The Einstein Activities API provides access to activities that you can use to track site interactions, and send them to the Einstein engine to enhance user experiences or provide reporting data.

The primary purpose of the Einstein Activities API is to send activities to Einstein. Using this API does not require using the Einstein Recommendations API. Some activities are automatically used with Salesforce Storefront Reference Architecture (SFRA) storefronts, like those for sending and receiving Einstein Recommendations. However, even when you aren't using the micro-services associated with SFRA, like when using Progressive Web App (PWA) storefronts, you can send activities to the Einstein engine for processing.

## Enable Access

To enable access to any Einstein API endpoints, go to [Einstein Configurator](https://configurator.cquotient.com), and input your Account Manager client ID in the API page. Using Site Administrator access, you can [add an API Client ID](https://help.salesforce.com/s/articleView?id=cc.b2c_account_manager_add_api_client_id.htm&type=5) on the Account Manager page.

When enabled, and as long as the correct site ID and client ID are passed, the API functions in all environments, including production, staging, development, and sandbox instances.

## Authentication

Each API call must pass the `x-cq-client-id` header for API key authentication.

Implementing our API on the client or server side comes with tradeoffs, and both approaches are valid. For more security, we recommend a server-side implementation to protect your client ID. A client-side implementation runs the risk of exposing the client ID to bad actors. For example, this exposure can affect the quality or accuracy of outputs such as product recommendations and analytics.

## Business Manager Configuration

**warning:** [Reports & Dashboards](https://developer.salesforce.com/docs/pwa-kit-managed-runtime/guides/reports-and-dashboards.md) can use data from Einstein Activites or web adapter logs, but not both. If you're considering a phased headless rollout, where some site elements are powered by a headless front end and others are powered by SFRA or Sitegensis, you must [update your SFRA storefront to use the Einstein Activities API](https://developer.salesforce.com/docs/commerce/pwa-kit-managed-runtime/guide/einstein-activities-for-phased-headless-rollouts.html).

**important:** Before you can use Einstein Activities for analytics, you must contact Support and ask them to enable the feature in Business Manager.

To configure a B2C Commerce instance to use Einstein Activities for analytics:

1. Log in to Business Manager.
2. Go to **Administration** > **Operations**
3. Click **Active Merchandising Analytics Configuration**.
4. Choose the site that you want to configure.
5. For Source for Activities, select **Einstein Activities** (must be enabled by Support).
6. Apply the change.

**important:** There can only be 1 active source for the _Source for Activities_: either the Web Adapter Log or the Einstein Activities. This configuration is site-specific (for example, RefArch, RefArchGlobal). Whichever it's set to, that's where [Reports &amp; Dashboards](https://developer.salesforce.com/docs/pwa-kit-managed-runtime/guides/reports-and-dashboards.md) will look for the data.

## Scalability

Our service is globally distributed, horizontally scalable, and can automatically scale up and down based on traffic so load testing is unnecessary. We recommend that you avoid any load testing because it affects recommendation results.

## Reporting

Einstein doesn’t provide separate reporting for activity data. View standard reporting in the [Einstein Dashboard](https://help.salesforce.com/s/articleView?id=cc.b2c_einstein_dashboard.htm&type=5).
