Google Analytics (Universal Analytics)
This page contains the setup guide and reference information for the Google Analytics (Universal Analytics) source connector.
This connector supports Universal Analytics properties through the Reporting API v4.
The Google Analytics (Universal Analytics) connector will be deprecated soon.
Google is phasing out Universal Analytics in favor of Google Analytics 4 (GA4). In consequence, we are deprecating the Google Analytics (Universal Analytics) connector and recommend that you migrate to the Google Analytics 4 (GA4) connector as soon as possible to ensure your syncs are not affected.
Due to this deprecation, we will not be accepting new contributions for this source.
For more information, see "Universal Analytics is going away".
Google Analytics Universal Analytics (UA) connector, uses the older version of Google Analytics, which has been the standard for tracking website and app user behavior since 2012.
Google Analytics 4 (GA4) connector is the latest version of Google Analytics, which was introduced in 2020. It offers a new data model that emphasizes events and user properties, rather than pageviews and sessions. This new model allows for more flexible and customizable reporting, as well as more accurate measurement of user behavior across devices and platforms.
Prerequisites
A Google Cloud account with Viewer permissions and Google Analytics Reporting API and Google Analytics API enabled.
Setup guide
For Airbyte Cloud:
- Log into your Airbyte Cloud account.
- In the left navigation bar, click Sources. In the top-right corner, click + New source.
- On the Set up the source page, select Google Analytics from the Source type dropdown.
- For Name, enter a name for the Google Analytics connector.
- Authenticate your Google account via Service Account Key Authentication.
- To authenticate your Google account via Service Account Key Authentication, enter your Google Cloud service account key in JSON format. Make sure the Service Account has the Project Viewer permission.
- Enter the Replication Start Date in YYYY-MM-DD format. The data added on and after this date will be replicated. If this field is blank, Airbyte will replicate all data.
- Enter the View ID for the Google Analytics View you want to fetch data from.
- Leave Data request time increment in days (Optional) blank or set to 1. For faster syncs, set this value to more than 1 but that might result in the Google Analytics API returning sampled data, potentially causing inaccuracies in the returned results. The maximum allowed value is 364.
For Airbyte Open Source:
- Navigate to the Airbyte Open Source dashboard.
- Go to the Airbyte UI and click Sources and then click + New source.
- On the Set up the source page, select Google Analytics from the Source type dropdown.
- Enter a name for the Google Analytics connector.
- Authenticate your Google account via Service Account Key Authentication:
- To authenticate your Google account via Service Account Key Authentication, enter your Google Cloud service account key in JSON format. Use the service account email address to add a user to the Google analytics view you want to access via the API and grant Read and Analyze permissions.
- Enter the Replication Start Date in YYYY-MM-DD format. The data added on and after this date will be replicated. If this field is blank, Airbyte will replicate all data.
- Enter the View ID for the Google Analytics View you want to fetch data from.
- Optionally, enter a JSON object as a string in the Custom Reports field. For details, refer to Requesting custom reports
- Leave Data request time increment in days (Optional) blank or set to 1. For faster syncs, set this value to more than 1 but that might result in the Google Analytics API returning sampled data, potentially causing inaccuracies in the returned results. The maximum allowed value is 364.