---
schema_version: "1"
id: 08327e9bbdd6e8f2008202d4a0f809f8861f14f2745285cbccaa6b4fd0bb444f
title: Connect a Website with Google Analytics 4
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/data-cloud/data-cloud-int/guides/c360-a-web-connector-ga4.md
canonical_url: https://developer.salesforce.com/docs/data/data-cloud-int/guide/c360-a-web-connector-ga4.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 06b67f2df87dbe13e482854cf22c94a35488a5ba6e385609c2edb2be9e0b2bc1
products:
  - Data 360 Integration Guide
  - Data 360 Developer Documentation
---
# Connect a Website with Google Analytics 4

Ingest event data from your Google Analytics 4 (GA4) websites into Data 360. This connector uses the Data 360 Web Software Development Kit (SDK) to track and send GA4 events to Data 360. When the data is in Data 360, you can use it to understand your customers and make business decisions by generating insights, creating marketing campaigns, and scoring leads.

**note:** As of October 14, 2025, Data 360 has been rebranded to Data 360. During this transition, you may see references to Data 360 in our application and documentation. While the name is new, the functionality and content remain unchanged.

When you create the connection between Data 360 and your website with GA4, Data 360 automatically sets:

- Default event definitions for most recommended and automatically collected engagement events documented by GA4
- The refresh mode for profile events to partial refresh
- Default data capture rules with basic Web SDK initialization configuration

## Prerequisites

- Your website must be using GA4. The connector doesn't work with previous versions of Google Analytics.
- To enable web data collection, you have to integrate Data 360 Web SDK with your website. You have the option of using Google Tag Manager (GTM) or manual integration.
- Whether you’re using GTM or manual integration, you must be pushing the events you want Data 360 to track to your [GTM data layer](https://developers.google.com/tag-platform/tag-manager/datalayer).

## Add Connection Details

1.  In Salesforce, click **Setup**, and then select **Data Cloud Setup**.
2.  Click **Website & Mobile Apps**, and then click **New Connection** or **Set Up Your First Connection**.
3.  Enter the connection name, an optional connection alias, and then select **A Website with Google Analytics**.
4.  Click **Next and Start Automated Setup**.

## Configure Event Capture

1. Data 360 creates most recommended and automatically collected event definitions for Google Analytics Events that you’re pushing to your data layer in Google Tag Manager. To review what each event does, click **View Definitions**.
2. To optionally set any custom events not specific to Google Analytics, click **Add Definitions**.
3. To select a refresh mode for Profile events, click **Change Refresh Mode**.

   | Choice            | Description                                                                                                                         |
   | ----------------- | ----------------------------------------------------------------------------------------------------------------------------------- |
   | Partial (default) | After initial data ingestion, replace only the fields for which new data is received.                                               |
   | Incremental       | After initial data ingestion, replace the entire record when new data is received. Existing values may be replaced by blank values. |

- If you added custom events and want to send/ingest data for new events, click **Set Data Capture Rules** and update a data capture rules file.

  **note:** Changing data capture rules, changes the data you collect or can cause no data to be ingested into Data 360. You must select the acknowledgment to do so.

4.  Select a data space to ingest the web engagement data, and then click **Next**.

## Configure Data 360

1.  To configure Data 360, click **Let’s Get Started**.
2.  Data 360 automatically creates a data stream and data mappings. You can also choose to create an identity resolution ruleset for your web connection.
3.  If you added custom events and have custom fields to map between your data stream and the data lake object, click **Map Custom Fields**. This takes you to the Data Streams page where you can select the desired data stream and proceed with the required mapping manually.

## Integrate Data 360 Web SDK with your GA4 Website

### Enable Data Collection with Google Tag Manager

1. From the Collect Web Engagement section, click **Select Tag Publication Type**.
2. Select Push a Tag using Google Tag Manager, and click Next.
3. To authenticate to Google Tag Manager, click **Sign in with Google**, and then follow the Google authentication prompts.
4. When prompted that Salesforce wants to access your Google account, click **Allow**.
5. Configure Google Tag Manager. Select an Account, Container, and Workspace where you want to add the tag, and then click **Save**. This creates a new custom HTML Data Cloud tag assigned to all pages in the corresponding workspace.
6. Ask your Google Tag Manager admin to log into Google Tag Manager, and then review and publish the tag.
7. Ask your admin to configure the [consent agreement](https://developer.salesforce.com/docs/data/data-cloud-ref/guide/c360a-api-consent.html).
8. After the consent agreement is configured, your GA4 website starts sending data to Data 360.

### Enable Data Collection with JavaScript Snippet

1.  Click **Select Publication Type**.
2.  Select **Manually add a snippet** and click **Save**.
3.  Copy the snippet.
4.  Ask your web admin to embed the snippet at the end of the `<body>` tag on the website pages from which you want to collect data.
5.  After your web admin adds the snippet tag, your GA4 website starts sending data to Data 360.

## See Also
- _Salesforce Developer:_ [Google Analytics 4 (GA4) Events and Mapping in Data 360](https://developer.salesforce.com/docs/data/data-cloud-int/guide/c360-a-web-connector-ga4-events-mapping.html)
- _Salesforce Developer:_ [Google Analytics 4 (GA4) Page Types in Data 360](https://developer.salesforce.com/docs/data/data-cloud-int/guide/c360-a-web-connector-ga4-page-types.html)
- _Salesforce Developer:_ [Sitemap](https://developer.salesforce.com/docs/data/data-cloud-ref/guide/c360a-api-sitemap.html)
- _Salesforce Developer:_ [Consent](https://developer.salesforce.com/docs/data/data-cloud-ref/guide/c360a-api-consent.html)
- _Salesforce Developer:_ [Identity](https://developer.salesforce.com/docs/data/data-cloud-ref/guide/c360a-api-identity.html)
- _Salesforce Developer:_ [User Data](https://developer.salesforce.com/docs/data/data-cloud-ref/guide/c360a-api-user-data.html)
