Skip to main content

Google Analytics - GA4 Connector

Google Analytics - GA4 Manage Google Analytics GA4 accounts and data

Connections

Google Analytics OAuth 2.0

Authenticate requests to Google Analytics using values obtained from the Google Cloud Platform.

This connection uses OAuth 2.0, a common authentication mechanism for integrations. Read about how OAuth 2.0 works here.

InputCommentsDefault
ScopesA space-delimited set of one or more scopes to get the user's permission to access.https://www.googleapis.com/auth/analytics https://www.googleapis.com/auth/analytics.manage.users https://www.googleapis.com/auth/analytics.edit https://www.googleapis.com/auth/analytics.readonly
Client IDProvide a string value for the client Id of your OAuth 2.0 application.
Client SecretProvide a string value for the client secret of your OAuth 2.0 application.

Actions

Get Property

Get property by ID

InputCommentsDefault
Connection
Property ID

List Accounts

Return a list of accounts accessible by the caller

InputCommentsDefault
Connection

List Properties

List Google Analytics GA4 properties for an account

InputCommentsDefault
Connection
Account ID

Raw Request

Send raw HTTP request to Google Analytics GA4

InputCommentsDefault
Connection
Base URL
URLInput the path only (/accounts), the base URL comes from the Base URL input. For example, to connect to <INPUT_BASE_URL>/accounts, only /accounts is entered in this field.
MethodThe HTTP method to use.
DataThe HTTP body payload to send to the URL.
Form DataThe Form Data to be sent as a multipart form upload.
File DataFile Data to be sent as a multipart form upload.
Query ParameterA list of query parameters to send with the request. This is the portion at the end of the URL similar to ?key1=value1&key2=value2.
HeaderA list of headers to send with the request.
Response TypeThe type of data you expect in the response. You can request json, text, or binary data.json
TimeoutThe maximum time that a client will await a response to its request
Debug RequestEnabling this flag will log out the current request.false
Retry Delay (ms)The delay in milliseconds between retries.0
Retry On All ErrorsIf true, retries on all erroneous responses regardless of type.false
Max Retry CountThe maximum number of retries to attempt.0
Use Exponential BackoffSpecifies whether to use a pre-defined exponential backoff strategy for retries.false

Run Report

Run a customized report on your Google Analytics event data

InputCommentsDefault
Connection
Property ID
Request BodySee https://developers.google.com/analytics/devguides/reporting/data/v1/rest/v1beta/properties/runReport for details on what dimensions, metrics, etc., you can specify.
{
"dimensions": [
{
"name": "pageTitle"
}
],
"metrics": [
{
"name": "sessions"
}
],
"dateRanges": [
{
"startDate": "7daysAgo",
"endDate": "yesterday"
}
],
"dimensionFilter": {
"notExpression": {
"filter": {
"fieldName": "pageTitle",
"stringFilter": {
"value": "My Homepage"
}
}
}
}
}

Send Measurement Protocol Events

Sends Measurement Protocol Events to your Google Analytics G4 Account

InputCommentsDefault
Firebase App IDThe Firebase App ID, found in the Firebase console under Project Settings > General > Your Apps > App ID
App Instance IDYour App's instance ID.
API SecretThe API secret for your Google Analytics G4. Generated in the Google Analytics UI
Events To SendThe events to send to Google Analytics