Google Analytics 4

Google Analytics 4 Reporting API offers multiple distinct API versions for generating reports with varying combination of dimensions and metrics. Visit the documentation website for a more in-depth overview.

Features

Feature nameSupported
Column HashingTrueField level
BlockingTrueField level
IncrementalTrue
Custom dataFalse
HistoryFalse
ReSyncTrueTable level
TemplatesFalse

Data Schema

T
- Table
S
- Sub table

Details on sync behavior

Initial sync

The data is being fetched in an incremental manner, with the first sync running a FULL import, starting from the date the user specifies during connector setup.

Rate limits are calculated depending on the complexity of the requested report and due to rate limiting constraints, the initial sync can be slower than subsequent syncs.

Incremental sync

Every incremental sync will perform four distinct operations:

  1. Sync all the new data since the last run.
  2. [Lookback] Overwrite all the data in the past 48h.
  3. [Lookback] Overwrite data for one day window, exactly 7 days ago.
  4. [Lookback] Overwrite data for one day window, exactly 30 days ago.

πŸ”§ Setup Guide

Step 1 - Add Data Source

  1. In the connector setup form, enter the destination schema name of your choice. This is the name of the connection which can be used for both incoming and outgoing syncs.

  2. Click Authorize to allow Weld to access your Google account using OAuth. You will be redirected to your Google account.

  3. Click Grant Access to allow Weld to connect to your Google app.
    When authorization is complete, you will be redirected back to the Weld connections overview.
    The configuration is complete.

Step 2 - Connection Settings

  1. Select the specific account and related GA4 property you wish you sync.

  2. Optional - create custom report (up to 20)

    • Choose a name for the custom report
    • Choose the desired dimensions (up to 8)
    • Select at least one Metric (up to 10) The date dimension is mandatory as the reports are synced on a daily basis.
  3. Limit historical data to only sync data after the selected date to only include that data in the initial sync.

Step 3 - Data To Sync

  1. Select the pre-built reports you wish to include in the sync.
    You can view the schema, remove columns or hash sensitive information.

Step 4 - Configure Sync

  1. Select how often you would like the data to sync.
  2. Provide a unique destination table name.

Weld will take over from here and commence syncing data from your Google Analytics account.

Custom Report Query Limits:

  • In order to sync reports on a daily basis, the inclusion of the date dimension is essential.
  • Please note that not all dimensions and metrics can be queried together. Valid combinations of dimensions and metrics are limited.
    It is recommended to double-check beforehand using the following Google references:

πŸ“Š SQL Templates

Get started with Google Analytics 4 SQL Templates

Get inspiration on how to model your data, with our collection of foundational SQL templates we have battle-tested at Weld. All the templates work out of the gate with the Weld data integrations for Google Analytics 4.

Was this page helpful?