Replicates the functionality of the GA4 Query Explorer inside Kleene — you choose the metrics and dimensions, and Kleene extracts the result.
Setup at a glance
- 01KleeneAdd Source
- 02Google Analytics (GA4)SSO & Auth
- 03KleeneComplete Setup
- Connected
- Connector type API
- Auth method Google sign-in + Property ID
Before you start
- A Google account with access to your Google Analytics account
- Your Property ID — the ID number, not the property name
Connect Google Analytics (GA4) to Kleene
-
Add the source in Kleene
- In the Kleene app, go to Add a source.
- Scroll down or search for Google Analytics (GA4).
- Click Connect.
-
Sign in at Google Analytics (GA4)
- Sign in with the Google account that has access to your Google Analytics account.
-
Finish the setup in Kleene
- Property
The new source now appears on the Sources screen.
Before you extract — Google Analytics (GA4) limits and report notes
This guide covers source setup only. When you move on to creating extracts, these are the connector-specific things to know.
Available reports
Four custom report types, each with a previous-month variant. See the full Google Analytics (GA4) report list on docs.kleene.ai for every report with its incremental and primary keys.
Extract notes
- Before setting up extracts, test your query in the Query Explorer: log in, select Account, select Property, select your date range (use today for the end date and XdaysAgo for the start date), then choose your metrics and dimensions. Don't worry about order by, aggregations or the limit. Note that not all metrics are compatible with all dimensions, and vice versa.
- Once you have validated that your query works, you can replicate it in the Kleene app. There are four reports:
- Custom report — select metrics and dimensions via a drop-down.
- Custom report with custom metrics & dimensions — specify a comma-separated list (no spaces) of metrics and dimensions if the options are not available in the drop-down.
- Custom report filter by custom metrics OR dimensions — filter your comma-separated list by either a specific dimension or a specific metric.
- Custom report filter by custom metrics & dimensions — filter your comma-separated list by both a specific dimension and a specific metric.
- Each of the four also has a (previous month) variant, which sets the start and end dates as the first and last day of the previous month by default.
Limits and gotchas
Dimension and metric limits
You are not able to include more than 9 dimensions in a single extract. You are not able to include more than 10 metrics on the Custom report filter by custom metrics OR dimensions and Custom report filter by custom metrics & dimensions reports.
Rate limits are token-based
GA4 rate limits are based on the number of tokens used per request, not simply the number of requests. Token usage increases when extracting more dimensions and metrics, or older data. If you want to backfill a large amount of data, don't attempt it in a single extraction.
Vendor reference: GA4 Query Explorer