Google Analytics
The Google Analytics module enables you to retrieve analytics data in your Google Analytics.
Getting Started with Google Analytics
Prerequisites
A Google Analytics account – you can create one at www.google.com/analytics
A Universal Analytics property created (in order to obtain a View ID)
Notice
The module dialog fields that are displayed in bold (in the Make scenario, not in this documentation article) are mandatory!
Connecting Google Analytics to Make
Go to Make and open the Google Analytics module's Create a connection dialog.
Enter a name for the connection to the Connection name field and click Continue.
After you click the Continue button, Make will redirect you to the Google website where you will be prompted to grant Make access to your account.
Confirm the dialog by clicking the Allow button.
The connection has been established.
Note
Some adblocking browser plugins could block the Google Analytics app based on the Analytics keyword in the app. It is recommended to disable the plugins if you encounter such an error.
Actions
Retrieves the analytic data for the specified website.
Connection | |||||||
View ID | Enter the View ID. See How To Obtain a View ID section. | ||||||
Sampling Level | Select the sampling level:
| ||||||
Date Ranges | Specify at least one date range you want to return results for. NoteWhen no date range is specified, no results will be returned. See the supported date and time formats. | ||||||
Dimensions | Specify dimensions you want to include in the module's output. For example, the dimension ga:city indicates the city from which a session originates.
| ||||||
Dimension Filter Clauses | Add groups of dimension filters. The dimension filter specifies the filtering options on a dimension. For more details about dimension filters, please refer to Dimension Filter documentation. | ||||||
Metrics | Add metrics. Metrics are quantitative measurements. For example, the metric The metric filter clauses. They are logically combined with the
| ||||||
Metric Filter Clauses | Set the metric filters. Select the operator for combining multiple metric filters and add metric filters. For more details about metric filter, please see metric filters documentation. | ||||||
Filters Expression | Enter a dimension or metric on which to filter, followed by the filter expression. For example, the following expression selects | ||||||
Order By | Set the sorting options.
| ||||||
Segments | If you need the report to be segmented, define segments you want to return. You can create a new segment (a dynamic segment) or enter the ID of the existing segment to be used. | ||||||
Pivots | Specify the pivot section. Please find the description of pivot fields in the GA v4 API documentation. | ||||||
Cohorts | Add and specify cohorts – cohort is a group of users who share a common characteristic. Please find the description of cohort fields in the GA v4 API documentation. | ||||||
Lifetime Value | If the value of Lifetime Value is disabled:
When the Lifetime Value is enabled:
| ||||||
Include Empty Rows | Enable to include rows if all the retrieved metrics are equal to zero. The default is disabled which will exclude these rows. | ||||||
Use Resource Quotas | Enables resource based quotas, (defaults to |
Allows you to perform a custom API call.
Connection | |
URL | Enter a path relative to NoteFor the list of available endpoints, refer to the Google Analytics v4 API Documentation. |
Method | Select the HTTP method you want to use:
|
Headers | Enter the desired request headers. You don't have to add authorization headers; we added those for you. |
Query String | Enter the request query string. |
Body | Enter the body content for your API call. |
The following API call returns analytics reports within the date range and specified dimensions and in your Google Analytics account:
URL: /v4/reports:batchGet
Method: POST
Body:
{ "reportRequests": [ {"viewId": "{viewID}", "dateRanges": [{"endDate": "2021-03-23", "startDate": "2020-01-01"}], "dimensions": [{"name": "ga:browser"}, {"name": "ga:city"}],}],}
![]() |
The result can be found in the module's Output under Bundle > Body > reports. In our example, the report data were returned:
![]() |
Log in to your Google Analytics account.
Navigate to the Admin page and click +Create Property button.
Fill in the property details, click Show advanced options (
) and enable the Create a Universal Analytics property option.
Enter your website URL and finish setting up the property – see GA documentation for further details.
Switch to the Universal Analytics property (UA-XXXXXXXXX-2).
Open View Settings and copy the View ID.
Notice
Use the tracking tag from your Universal Analytics property (UA-XXXXXXXXX-2), not from your GA4 property.