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
          Track Site Users with Your Google Analytics Tracking ID

          Track Site Users with Your Google Analytics Tracking ID

          Add your Google Analytics™ tracking ID to track page views. Enable access to your Salesforce data for deeper insights. Then, adjust your pages to more accurately reach your customers.

          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

          To track using Google Analytics:

          1. In Experience Builder, click Settings on the left sidebar and click Advanced.
          2. Enter your Google Analytics tracking ID.
            Google ID in Experience Builder Advanced Settings
          3. To track user types, user IDs, and search activity, enable Let Google Analytics access your Salesforce data for deeper insights into search activity.
          4. To enable the masking of IP addresses on the Google server side, which helps with privacy compliance or concerns, Use IP Anonymization.
          5. To enable the service, publish the site.

          Your site’s analytics data streams directly to the Google Analytics service where you can review and interpret it.

          After you’ve set up Google Analytics to integrate with your data, you can create your own reports.

          For developers of custom Lightning components, we provide the global forceCommunity:analyticsInteraction event. Use this event to track events triggered by the custom component.

           
          Loading
          Salesforce Help | Article