---
schema_version: "1"
id: ce243494c920159ac0eb23f4a9c1f6c502a763211d1ea1ef0751aae15e9891e7
title: Send Storefront Next Analytics Events to Data 360
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/commerce-cloud/sfnext/guides/sfnext-data360.md
canonical_url: https://developer.salesforce.com/docs/commerce/pwa-kit-managed-runtime/guide/sfnext-data360.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 03941a6f855664c224cef544ba6b7b6ee93ad3c97b5a102489947ba55d50e43b
products:
  - Composable Storefront
  - Salesforce APIs
---
# Send Storefront Next Analytics Events to Data 360

To unify your customer data on Salesforce, connect Storefront Next to [Data 360](https://help.salesforce.com/s/articleView?id=data.c360_a_data_cloud.htm). After you set your store as a data source, Data 360 receives engagement events, which are triggered by shopper activities in your storefront.

These engagement events are supported.

- `view_page`: A shopper views a page.
- `view_product`: A shopper views a product detail page.
- `view_search`: A shopper views a category or listing page.
- `view_category`: A shopper performs a product search.
- `view_recommender`: A shopper views personalized recommendations.

## Prerequisites

To use Data 360 with Storefront Next, you must first set up your own production instance of Data 360. See [Get Started Using Data 360](https://help.salesforce.com/s/articleView?id=data.c360_a_product_considerations.htm) in _Salesforce Help_.

## Set Up Storefront Next Events for Data 360

1. To connect your storefront to Data 360, complete the instructions from [Connect a Website or Mobile App to Data 360](https://developer.salesforce.com/docs/data/data-cloud-int/guide/c360-a-set-up-mobile-web-connection.html) in the _Data 360 Integration Guide_. When the New Connection window asks what you’re connecting to, select **A Custom Website**.
2. To start sending data from your storefront to Data 360, complete the instructions from [Create a Web or Mobile App Data Stream](https://developer.salesforce.com/docs/data/data-cloud-int/guide/c360-a-mobile-web-datastream.html) in the _Data 360 Integration Guide_.
3. Get the Data 360 tenant ID.
   1. In Data 360, click ![Setup](https://developer.salesforce.com/docs/media/pwa-kit-managed-runtime/comm-setup-icon-no-border.png) at the top of the page, and then select **Data 360 Setup**.
   2. In the Your Home Org Details section, copy and save the tenant ID from the tenant endpoint. The tenant ID is the string preceding the first period. For example, `<tenantId>.c360a.salesforce.com`.
4. Get the Data 360 app source ID.
   1. Go back to Data 360 Setup.
   2. In the Set Up Data 360 section, click **Connect Other Data Sources | Website and Mobile App**.
   3. Select the connection for your Storefront Next storefront.
   4. In the Integration Guide section, copy and save the app source ID from the script. The app source ID is the string preceding `/scripts`. For example, `https://cdn.pc-rnd.c360a.salesforce.com/beacon/c360a/<appSourceId>/scripts/c360a.min.js`.
5. Update your Storefront Next project’s `config.server.ts` with the Data 360 tenant and app source IDs from steps 3 and configure the adapter under `engagement.adapters.data360`. Here’s an example, with placeholders for your IDs:

   ```javascript
   engagement: {
       adapters: {
           data360: {
               enabled: true,
               appSourceId: '<your-app-source-id>',
               tenantId: '<your-tenant-id>',
               siteId: '<your-site-id>',
           },
       },
   }
   ```

   `<your-app-source-id>`, `<your-tenant-id>`, and `<your-site-id>` are required. For the full field reference, including `webStoreId`, `consentCategory`, and the per-event `eventToggles`, see [Set Up Data 360](https://developer.salesforce.com/docs/commerce/pwa-kit-managed-runtime/guide/sfnext-analytics.md#set-up-data360).

## Verify Event Retrieval

1. In Data 360, click **Data Explorer**.
2. Select a data space.
3. From the Object dropdown list, select **Data Model Object**.
4. In the object field, search for and select **Website Engagement**.
5. To personalize your data view, click **Edit Columns** and select the columns corresponding to the data points you want to view.
6. In your store‘s test environment, try out shopper activities: search for a product, view a product detail page, and so on.
7. Refresh your Data Explorer tab and verify that engagement event data appears.

For more information about how B2C Commerce storefronts can integrate with Data 360, see [Sending B2C Commerce Engagement Events to Data 360](https://help.salesforce.com/s/articleView?id=cc.b2c_data_cloud_send_engagement_events_container.htm) in _Salesforce Help_.
