---
schema_version: "1"
id: d67881cbcc2c4740eefd36cd8df1e394f1b19a1d2f826f05ef280ae719326805
title: Create a Google Analytics GA4 Data Stream in Marketing Cloud Intelligence
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/mktg/264-0-0/dato_data_streams_api_connect_ganal_create.md
canonical_url: https://help.salesforce.com/s/articleView?id=mktg.dato_data_streams_api_connect_ganal_create.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: ddd6880f0fa640cfa91843472681e9326868877a5f4b6c984157ab17fa755abf
description: Create a Google Analytics GA4 data stream to track and view reports on website traffic.
products:
  - Marketing
  - Marketing Cloud Intelligence
release: "264"
---
# Create a Google Analytics GA4 Data Stream in Marketing Cloud Intelligence

Create a Google Analytics GA4 data stream to track and view reports on website traffic.

### Required Editions

<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="d80306e38">User Permissions Needed</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d80306e38 ">To create an API data stream:</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d80306e38 ">Admin</td>

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

To create a Google Analytics GA4 API data stream requires a valid username and password with access to at least one Google Analytics profile.

1. On the **Connect and Mix** tab, click **Add New**.
2. Select the **Google Analytics** connector.
3. In the **General** section, click **Add New** and enter your credentials.
4. Next to **Website** select the GA4 Property that you want to retrieve data for. This API only pulls in data at the website or App level by default.
5. Set more properties by using **Extended Properties**:
    
    ![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-mktg-salesforce_datorama-264-0-0-production-enus/d38a342d-dd4a-4af8-8343-f372280a75dd/images/icon_note.png)
    
    Note Due to a Google Analytics limitation, there’s a limit on the number of dimensions and measurements that can be pulled in the same query. If you encounter issues, try removing extended properties.
    
    1. **Location Breakdown**: Select this breakdown to add the Country dimension.
    2. To pull page-level data, from the **Get Page Levels** dropdown, select the level. For example, if you select two levels, the first two sections of the page path are extracted to two columns in your report. Selecting all levels causes longer query times.
    3. **Get Events Data**: Select to add the Web Analytics Events data stream type. These fields are added.
        
        1. Event Name
        2. Total Events
        3. Events Value
    4. **Get Device Category** Select to add the Web Analytics data stream type. These fields are added.
        
        1. Device Browser
        2. Device Category
    5. **Get Pages**: Select to add the Web Analytics Pages data stream type. These fields are added.
        
        1. Web Analytics Page Hostname
        2. Web Analytics Page Path
        3. Web Analytics Page Path Level 1
        4. Web Analytics Page Path Level 2
    6. **Get Keywords**: Select to add the Web Analytics Data Stream Type. These fields are added.
        
        1. Web Analytics Keyword
        2. Key Web Analytics Keyword
    7. **Get Campaigns**: Select to add the Web Analytics Data Stream Type. This field is added.
        
        1. Web Analytics Site Campaign
    8. **Map as delivery entities**: This checkbox is available when **Get Keywords** or **Get Campaigns** are selected. This selection enables data to be connected to your workspace’s delivery data. If selected, these fields are added to the Web Analytics Data Stream Type.
        
        1. Web Analytics Site Campaign
        2. Search Keyword Key
        3. Search Keyword
    9. **Get nonsampled data**: Select to retrieve nonsampled data from Google Analytics. This capability applies only to GA360.
    10. **Traffic Source Dimension**: Use this dropdown to determine the scope in which the traffic-source dimensions are pulled into the dataset. You can select **Session-scoped dimensions** or **User-scoped dimensions**. For example, if you select Session-scoped, the web analytics source field is populated with Session Source. If you select User-scoped the web analytics source field is populated with First User. Use the Map to Model screen to check the display name and ensure your selection is correct.
6. To view or change the mapping, click **Mapping**. Or you can access mapping by selecting **Map to Model** at the bottom of the Create New Stream page.
7. To define advanced settings, at the bottom of the screen, select **Advanced Settings**.
8. Save your work.
9. Quality check your data:
    
    1. Create a report in the Google Analytics platform for the required date.
    2. Process the relevant data stream in Marketing Cloud Intelligence filtered to the same date range.
    3. Create an identical report or pivot table in Marketing Cloud Intelligence with the same date range, dimensions, and measurements.
    4. Compare the measurement totals to make sure that they’re aligned.
    
    ![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-mktg-salesforce_datorama-264-0-0-production-enus/d38a342d-dd4a-4af8-8343-f372280a75dd/images/icon_note.png)
    
    Note The sliding window for the Google Analytics API connector is 10
    
    ![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-mktg-salesforce_datorama-264-0-0-production-enus/d38a342d-dd4a-4af8-8343-f372280a75dd/images/icon_note.png)
    
    Note You may encounter data discrepancies when comparing your report with GA reports. If you discover that your GA report contains dimensions and measurements that aren’t displaying in Marketing Cloud Intelligence, try using our custom connector to include the exact same set of dimensions and measurements that are displayed in GA reports. For more information, see [Create a Google Analytics Custom Data Stream in Marketing Cloud Intelligence](https://help.salesforce.com/s/articleView?id=mktg.dato_data_streams_api_connect_ganal_custom_create.htm&release=264.0.0&type=5 "To create and manage Google Analytics custom reports, create a Google Analytics custom data stream.")
    
    .

- **[Add Commerce Fields to Google Analytics Connector in Marketing Cloud Intelligence](https://help.salesforce.com/s/articleView?id=mktg.dato_data_streams_api_connect_ganal_create_fields.htm&release=264.0.0&type=5)**  
    Add commerce fields to your Google Analytics connector to view Product and Order level data—displaying engagement and performance data alongside analytics data. With this view you can learn more about your commerce marketing spend and generated revenue.