Hi, I'm Ask INFA!
What would you like to know?
ASK INFAPreview
Please to access Ask INFA.

Google Analytics Connector

Google Analytics Connector

Read from Google Analytics report using Google Analytics 4 API

Read from Google Analytics report using Google Analytics 4 API

The Google Analytics 4 API is an analytics service that enables you to measure traffic and engagement across your websites and applications. Google Analytics 4 includes a single analytics property that contains data streams, and you can include one or more data sources within this property. You can apply filters directly to your report to view and analyze the data from each stream according to your requirements.
You can use multiple date ranges to filter the data in a Google Analytics report. When you specify multiple date ranges, separate each date range with a comma and ensure that StartDate and EndDate sizes are the same. For multiple date ranges, the Google Analytics 4 response adds an additional dimension with the name dateRange and the response object returns the values like date_range_0, date_range_1, date_range_2, and date_range_3. If you specify only a single date range, the dateRange column is assigned the default value of null.
For example,
StartDate: 2023-01-21, 2023-04-30, yesterday
EndDate: 30daysAgo, 20daysAgo, today
In the example, the first date range is considered between 2023-01-21 and 30daysAgo, the second date range is considered between 2023-04-30 and 20daysAgo, and the third date range is considered between yesterday and today.

Rules and guidelines for Google Analytics 4 API

The following rules and guidelines apply when you use Google Analytics 4 API to read from Google Analytics reports:
  • You can read only the new data using Google Analytics 4 API. You cannot read the historical data.
  • If you switch a mapping configured with the Core Reporting API v3 or Analytics Reporting API v4 connection with a Google Analytics 4 connection, the mapping fails.
  • You cannot use a Lookup transformation.
  • You cannot use a native filter in the Source transformation.
  • You can use the following operators to process the data:
    • Dimension: EQUALS, NOT_EQUALS, CONTAINS, STARTS_WITH, and ENDS_WITH
    • Metric: EQUALS, NOT_EQUALS, LESS, LESS OR EQUALS, GREATER, and GREATER OR EQUALS

0 COMMENTS

We’d like to hear from you!