---
schema_version: "1"
id: 487be27ff01d335d4d7bf6fdbe7ae4a703cbbe2cbf44aca43ec1a3744fd4e2d8
title: Set Up Agentforce Session Tracing
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/ai/264-0-0/generative_ai_session_trace_setup.md
canonical_url: https://help.salesforce.com/s/articleView?id=ai.generative_ai_session_trace_setup.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 74f41c52d81fb8d7ba4a625a8d8d1e345fc1fdc2271c2a721eba7c2d271bb1a1
description: Turn on Agentforce Session Tracing to collect and store, in Data 360, detailed data about agent sessions. By default, Agentforce Session Tracing is off. For orgs with only one dataspace, it’s turned on by default when Agentforce is turned on.
products:
  - Agentforce
  - Cross Cloud
release: "264"
---
# Set Up Agentforce Session Tracing

Turn on Agentforce Session Tracing to collect and store, in Data 360, detailed data about agent sessions. By default, Agentforce Session Tracing is off. For orgs with only one dataspace, it’s turned on by default when Agentforce is turned on.

### 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: <strong>Enterprise</strong>, <strong>Performance</strong>, and <strong>Unlimited</strong> Editions with an Einstein for Sales, Einstein for Platform, Einstein for Service, Einstein 1 Service, or Einstein GPT Service add-on. To purchase add-ons, contact your Salesforce account executive.</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="d132518e63">User Permissions Needed</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d132518e63 ">To turn on data collection:</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d132518e63 ">View Setup</td>

          </tr>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d132518e63 ">&nbsp;</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d132518e63 ">AND</td>

          </tr>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d132518e63 ">&nbsp;</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d132518e63 ">Customize Application</td>

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

![Important](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-ai-generative_ai-264-0-0-production-enus/f8ef6498-d7b2-44e3-9b34-ffd5a850aae9/images/icon_important.png)

Important For the Platform Integration User, turn on the "View Setup and Configuration" system permission in the Data Cloud Salesforce Connector permission set.

![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-ai-generative_ai-264-0-0-production-enus/f8ef6498-d7b2-44e3-9b34-ffd5a850aae9/images/icon_note.png)

Note

- Turning on Agentforce automatically turns on Agentforce Session Tracing, Agent Analytics, Agent Optimization, and Agent Health Monitoring. However, turning off Agentforce doesn't automatically turn these observability features off. You turn them off manually in Setup.
- Agentforce Session Tracing requires Salesforce Standard Data Model version 1.130 or higher.
- Salesforce stores Agentforce Session Tracing data in a data space in Data 360. See [Data Model for Agentforce Session Tracing](https://help.salesforce.com/s/articleView?id=ai.generative_ai_session_trace_data_model.htm&release=264.0.0&type=5 "Use the data model in Data 360 to build reports, dashboards, and queries that provide insights into agent behavior. The system streams data to data lake objects (DLOs) in Data 360 within minutes. Access the data via the standard data model objects (DMOs), which are mapped to the DLOs.").

1. Verify that you have the latest version of the Salesforce Standard Data Model (version 1.130 or higher) in your org (sandbox or production). From Setup, go to **Apps** -> **Packaging** -> **Installed Packages** -> **Salesforce Standard Data Model**. To get the required version, click [here](https://login.salesforce.com/packaging/installPackage.apexp?p0=04tKe000000Pc4v) and follow the instructions.
2. Turn on Einstein Generative AI (see [Set Up Einstein Generative AI](https://help.salesforce.com/s/articleView?id=ai.generative_ai_enable.htm&release=264.0.0&type=5 "Set up Einstein generative AI to get access to powerful generative AI features.")) and Agentforce (see [Enable Agentforce](https://help.salesforce.com/s/articleView?id=ai.agent_setup_enable.htm&release=264.0.0&type=5 "Turn on Agentforce to start building, customizing, testing, and launching AI agents.")).
3. From Setup, in the Quick Find box, enter Einstein Generative AI, and then select **Einstein Audit, Analytics, and Monitoring Setup**.
4. Scroll down to **Agentforce Session Tracing**.
5. Turn **Agentforce Session Tracing** on or off.
    
    ![Toggle for Agentforce Session Tracing in Setup](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-ai-generative_ai-264-0-0-production-enus/f8ef6498-d7b2-44e3-9b34-ffd5a850aae9/generative_ai/images/generative_ai_session_trace_setup.png)
    
    1. Turn on **Agentforce Session Tracing** to start collecting data in Data 360. The system provisions your data model, which can take a few minutes, and then starts collecting data. Data collection recurs at five-minute intervals.
    2. Turn off **Agentforce Session Tracing** to stop collecting data and automatically turn off any dependent features.
        
        Suspending data collection keeps your existing data so that you can resume later. Dashboards, queries, and reports show a gap during which data collection is off.
6. If prompted (for example, your org has multiple data spaces), select a target [data space](https://help.salesforce.com/s/articleView?id=data.c360_a_data_spaces.htm&type=5&language=en_US) to store the session trace data.
    
    - To add data to previously collected Session Tracing data, select the previously selected data space.
    - If you use a Data Cloud One companion connection to connect your orgs to Data 360, you see only the data spaces that are shared with your [companion org](https://help.salesforce.com/s/articleView?id=data.c360_a_connect_salesforce_orgs.htm&type=5&language=en_US).
    - To use a data space that is shared with your companion org, verify that the initialization status for the shared data space is active. See [Monitor Data Cloud Companion Connections](https://help.salesforce.com/s/articleView?id=data.c360_a_data_cloud_one_monitoring.htm&type=5&language=en_US) and [Data Cloud One Companion Connection Statuses](https://help.salesforce.com/s/articleView?id=data.c360_a_companion_connection_statuses.htm&type=5&language=en_US).
    - If you change the data space, then the system provisions the data model in the new data space. Any data collection stops in the previous data space, and that data remains until it’s manually deleted. Data isn't migrated to the new data space.
    - Be sure to communicate any changes to your data space selection internally and with your Salesforce Admin team.
7. Protect access to collected Agentforce Session Tracing data that is sensitive. Hide sensitive data from unauthorized users. Stored data can contain personally identifying information (PII), protected health information (PHI), payment card information (PCI), and other sensitive information.
    
    - Use dynamic data masking to redact, nullify, or round sensitive data. For instructions, see [Dynamic Data Masking Policies in Data 360](https://help.salesforce.com/s/articleView?id=data.c360_a_dynamic_data_masking_policies.htm&type=5&language=en_US).
    - Apply permissions at the data space level. That way, only authorized users can view or query this data. By default, users with the Data Cloud Architect (formerly the Data Cloud Admin) permission set have access to all the data. For instructions, see [Implement Data Governance Permissions for Agentforce Session Tracing Objects](https://help.salesforce.com/s/articleView?id=ai.generative_ai_session_trace_data_governance.htm&release=264.0.0&type=5 "Use Data Cloud Data Governance to protect sensitive data by setting up dynamic data masking and field-specific data exclusion policies. Grant access to the impacted Data 360 objects according to an access policy.").
    - The Salesforce System Admin profile includes the Manage All Data Space definition permission, which grants users access to all Data Spaces. If the default Allow All policy is active in the org, users with the System Admin profile can query all Data 360 DMOs. To preserve data security, we recommend deleting the default Allow All policy or editing its scope to apply to specific users. For instructions, see [Data Governance in Data 360](https://help.salesforce.com/s/articleView?id=data.c360_a_data_gov_capabilities.htm&type=5&language=en_US).