---
schema_version: "1"
id: b8f66518eeca418443355ae1394a57dedbd2c4965f7f4ab58af500434e782e5f
title: Configure Google Analytics™ 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/networks_google_analytics_setup.md
canonical_url: https://help.salesforce.com/s/articleView?id=experience.networks_google_analytics_setup.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: a9190582e6ce4c5624c0266d7bae67fdee2f692ddfbc0225b81c6e9df54da4e0
description: Set up Google Analytics to track user IDs, user types, and search activity so that users can pull this information into meaningful reports.
products:
  - Experiences
release: "264"
---
# Configure Google Analytics™ for Experience Cloud Sites

Set up Google Analytics to track user IDs, user types, and search activity so that users can pull this information into meaningful reports.

### 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: both Salesforce Classic and Lightning Experience</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: <strong>Enterprise</strong>, <strong>Performance</strong>, <strong>Unlimited</strong>, and <strong>Developer</strong> Editions</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="d19408e70">User Permissions
              Needed</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d19408e70 ">To customize or publish an Experience Cloud site:</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d19408e70 ">
              <ul>
                <li>Create and Set Up Experiences AND View Setup and Configuration AND be a member
                  of the site<p>OR</p>
                </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" target="_blank">role-based site access</a>
                </li>

              </ul>
            </td>

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

Google Analytics integrates with your self-service site to track user types, user IDs, page views on Salesforce objects, and customer search activity. To capture this information correctly, some initial setup is required.

1. In Experience Builder, go to **Settings** | **Security & Privacy**. Under **Content Security Policy**, select **Relaxed CSP: Permit Access to Inline Scripts and Allowed Hosts**.
2. Go to **Settings** | **Advanced** and enter your Google Analytics ID.
    
    For more information about the Google Analytics ID, check the [Google Analytics documentation](https://support.google.com/analytics/answer/1032385?hl=en).
3. Select **Let Google Analytics access your Salesforce data for deeper insights into search activity**.
    
    This step lets Google Analytics track user types, user IDs, and customer search activity in your site.
4. To enable the masking of IP addresses on the Google server side, select **Use IP Anonymization**.
    
    Masking IP addresses helps with privacy compliance and concerns.
5. Create custom dimensions in your Google Analytics account that capture user type and Salesforce object information.
    1. From your Google Analytics account, go to **Admin** | **Property** | **Custom Definitions** | **Custom Dimensions**, and click **+New Custom Dimension**.
    2. For the first index you want to use, enter the name User Type and select **Hit** for the scope.
    3. For the second index, enter the name Salesforce Object and select **Hit** for the scope.
        
        ![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-experience-communities-264-0-0-production-enus/bf7df212-91a1-4fa3-a007-4d6f3e3b470b/images/icon_note.png)
        
        Note The Google Analytics console auto assigns sequential indexes based on how many variables you created. Configure the custom dimension indexes in the site so that they match the indexes of the newly created variables.
6. Create a User-ID view.
    
    With the User-ID view, you can analyze how specific segments of traffic with an assigned ID engage with your content.
    
    1. Go to **Admin** | **Property** | **Tracking Info** | **User-ID** and follow the instructions.
    2. For the User-ID view, enter the name User Explorer.
7. To track the way different types of users are interacting with the site, click **Reporting** | **Audience** | **User Explorer** | **User Flow**.

After you integrate Google Analytics, you can install the preconfigured [Google Analytics for Salesforce Communities package](https://analytics.google.com/analytics/gallery/#posts/search/%3F_.viewId%3DWGfCUMyAT0CaxBM0wOFRsQ/) or [create your own reports](https://support.google.com/analytics/answer/1151300?hl=en).