---
schema_version: "1"
id: bc9e45572e6383d06dcecbd2d17bb2c10c0ddc2fc12782fa90c49c404f6dcf52
title: Set Up Event Ingestion for Experience Cloud Sites
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/experience/264-0-0/set_up_event_ingestion_for_experience_cloud_sites.md
canonical_url: https://help.salesforce.com/s/articleView?id=experience.set_up_event_ingestion_for_experience_cloud_sites.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: fc700f965af4de1716d04a3602ee8dea29735b55c1fd13e85b4a34dfc8560dae
description: Capture customer interaction data from your sites and flow it into Data Cloud to power personalized greetings and task recommendations.
products:
  - Experiences
release: "264"
---
# Set Up Event Ingestion for Experience Cloud Sites

Capture customer interaction data from your sites and flow it into Data Cloud to power personalized greetings and task recommendations.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: Salesforce Classic and Lightning Experience</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: Enterprise, Performance, Unlimited, and Developer Editions</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: <a href="https://www.salesforce.com/agentforce/pricing/" target="_blank">LWR</a> and <a href="https://help.salesforce.com/s/articleView?id=experience.exp_cloud_basics_glossary.htm&amp;language=en_US&amp;type=5" target="_blank">Aura</a></td></tr></tbody></table>

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small permission">
        <colgroup>
          <col style="width:50%">
          <col style="width:50%">
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="colgroup" class="slds-cell-wrap" colspan="2" style="text-align:center;vertical-align:top;" id="d69703e73">User Permissions Needed</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d69703e73 ">To manage permission sets, access Data 360 Setup, and create an identity resolution
              ruleset:</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d69703e73 ">Assign Permission Sets AND View Setup and Configuration </td>

          </tr>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d69703e73 ">To create an Experience Cloud site:</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d69703e73 ">Create and Set Up Experiences AND View Setup and Configuration</td>

          </tr>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d69703e73 ">To customize or publish an Experience Cloud site:</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d69703e73 ">
              <ul>
                <li>Create and Set Up Experiences AND View Setup and Configuration AND be a member of the
                  site OR</li>

                <li>View Setup and Configuration AND be a member of the site AND have appropriate <a href="https://help.salesforce.com/s/articleView?id=experience.networks_access_control_overview.htm&amp;language=en_US&amp;type=5" target="_blank">role-based site access</a></li>

              </ul>
            </td>

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

Before beginning ingestion, use the [Mobile and Web SDK Schema Quick Guide for Data 360](https://developer.salesforce.com/docs/data/data-cloud-int/guide/c360-a-mobile-web-sdk-schema-quick-guide.html) to prepare your JSON schema. [Upload a Website Sitemap to Data 360](https://developer.salesforce.com/docs/data/data-cloud-int/guide/c360-a-upload-a-sitemap-file.html) to track specific site behaviors.

1. [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).
2. Select **Upload Files** on your new connector and provide your custom [Aura\_Sites\_Schema.json](https://resources.docs.salesforce.com/rel1/doc/en-us/static/misc/Aura_Sites_Schema.json).
3. In the website connector configuration, select the **Sitemap** tab and select **Upload Sitemap** to provide your [aura\_sitemap.js](https://resources.docs.salesforce.com/rel1/doc/en-us/static/misc/aura_sitemap.js) behavioral tracking file.
4. [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 Cloud app for your website connector.
5. Select the **Party Identification**, **Identity**, **Search**, and **UserEngagement** events during data stream configuration.
6. Deploy the data stream to your designated data space to trigger the creation of Data Lake Objects (DLOs).
7. Map your Data Lake Objects (DLO) to the appropriate Data Model Objects (DMO) using the [Starter Web and Mobile Connector Data Mappings](https://developer.salesforce.com/docs/data/data-cloud-int/guide/c360-a-suggested-web-mobile-connector-data-mappings.html).
8. Map the specific engagement fields for **userEngagement.engagementNotes** to **Engagement Notes** and **userEngagement.engagementNumber** to **Engagement**
9. To authorize the SDK URL, from Setup, in the Quick Find box, enter Trusted URLs, and then select **Trusted URLs**.
10. Select **New Trusted URL** and enter your unique SDK URL found in your connector settings.
11. In the CSP Directives section, select connect-src (scripts) and img-src (images), and save your changes as described in [Manage Trusted URLs](https://help.salesforce.com/s/articleView?id=xcloud.security_trusted_urls_manage.htm&type=5&language=en_US).
12. To configure the Web SDK for Aura sites, from Setup, in the Quick Find box, enter Digital Experiences, and then select **All Sites**.
13. Select **Builder** next to your Aura site, navigate to Settings, and select **Advanced**.
14. Select **Edit Header Markup** and paste the initialization script. Replace the source URL with your unique SDK URL.
    
    ```
    <script src="https://cdn.pc-rnd.c360a.salesforce.com/beacon/c360a/YOUR_ID/scripts/c360a.min.js"></script>
    <script>
        SalesforceInteractions.init({
            consents: [{
                provider: 'OneTrust',
                purpose: 'Tracking',
                status: SalesforceInteractions.ConsentStatus.OptIn
            }]
        });
    </script>
    ```
15. Navigate to Settings and select **Security & Privacy** in Experience Builder.
16. Select a [Security Level in Experience Builder Sites](https://help.salesforce.com/s/articleView?id=experience.networks_security_csp_scriptlevel.htm&type=5&language=en_US) and set it to **Relaxed CSP: Permit Access to Inline Scripts and Allowed Hosts**.
17. [Connect Experience Cloud to Data Cloud](https://help.salesforce.com/s/articleView?id=experience.exp_cloud_data_cloud.htm&type=5&language=en_US) for your LWR site. Add the native integration in Experience Builder settings.
18. Paste the consent script into the **Header Markup** of your LWR site to initialize tracking.

#### See Also

- [Using Data Cloud Web SDK to Capture Engagement on Your Website](https://developer.salesforce.com/blogs/2024/04/using-data-cloud-web-sdk-to-capture-engagement-on-your-website?utm_source=chatgpt.com)