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: |
|
To track using Google Analytics:
-
In Experience Builder, click
on the left
sidebar and click Advanced.
-
Enter your Google Analytics tracking ID.

- To track user types, user IDs, and search activity, enable Let Google Analytics access your Salesforce data for deeper insights into search activity.
- To enable the masking of IP addresses on the Google server side, which helps with privacy compliance or concerns, Use IP Anonymization.
- 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.
- 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.