Loading
Experience Cloud
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          Configure Google Analytics™ for Experience Cloud Sites

          Configure Google Analytics™ for Experience Cloud Sites

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

          Required Editions

          Available in: both Salesforce Classic and Lightning Experience
          Available in: Enterprise, Performance, Unlimited, and Developer Editions
          User Permissions Needed
          To customize or publish an Experience Cloud site:
          • Create and Set Up Experiences AND View Setup and Configuration AND be a member of the site

            OR

          • View Setup and Configuration AND be a member of the site AND have appropriate role-based site access

          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. Under Content Security Policy, choose Allow Inline Scripts and Script Access to Whitelisted Third-party 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.
          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
              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 or create your own reports.

           
          Loading
          Salesforce Help | Article