Install
Get reports and user activity from Google Analytics. Connect with Google sign-in.
- Open System, then Nodes.
- Find Google Analytics and click Install.
- Use the new nodes at once. You do not restart.
How it works
Google Analytics (google_analytics.api) is an action node in the Google Analytics package (@zerodot/google-analytics): Get reports and user activity from Google Analytics.
- Report: get
- User Activity: search
Report > Get
Pick a Property Type.
- Google Analytics 4 (default): uses the Data API
properties/{id}:runReport. Set the Property to the property ID or its URL. - Universal Analytics: uses the Reporting API v4
reports:batchGet. Set the View to the view ID or its URL. Google stopped Universal Analytics in 2023, so this mode may not work for new data.
Common fields:
- Date Range: last 7 days (default), last 30 days, today, yesterday, last complete calendar week (Monday to Sunday), last complete calendar month, or custom (Start and End as
YYYY-MM-DD). - Metrics and Dimensions to split by: pick from the common list, or choose "Other" and type the API name. A GA4 metric can also be "Custom metric" with an expression (for example
eventCount/totalUsers). The node refuses a name that appears twice. - Return All reads all pages. Limit (default 50) is the page size when Return All is off.
- Simplify Output (default on): one item for each row, with dimension and metric names as keys. Off: the raw answer of Google.
Additional fields for GA4: Currency Code, Dimensions Filters and Metrics Filters (an "and" group or an "or" group of string, in list, numeric, and between filters), Metric Aggregation, Keep Empty Rows, Order By, Return Property Quota.
Additional fields for Universal Analytics (Additional Fields (Universal Analytics) in the config): Dimension Filters, Hide Totals, Hide Value Ranges, Include Empty Rows, Use Resource Quotas.
The date ranges use the time zone of the server.
User Activity > Search
Returns the sessions of one user from the Reporting API v4 userActivity:search. Set the View, the User ID, and optional Activity Types (Ecommerce, Event, Goal, Pageview, Screenview). Return All follows the page token. Limit is at most 500.
Logins it can use
- Google Analytics OAuth2 (
google_analytics.oauth2):clientIdandclientSecretof a Google Cloud OAuth client. Scopehttps://www.googleapis.com/auth/analytics.readonly. zerodot refreshes the token. The client secret and the tokens are secret.
Turn on the Google Analytics Data API (and the Google Analytics Reporting API for Universal Analytics and user activity) in the Google Cloud project.
Guides and related hubs
Add Google Analytics from System > Nodes without restarting.
All Analytics nodesConnect PostHog, Mixpanel, DataForSEO, Google Analytics, and product telemetry sources to automated pipelines.
Use credentialsAES-256-GCM encrypted API keys and OAuth2 connections.
Compare alternativesCompare zerodot with n8n, Zapier, Windmill, and Activepieces.