π Quickstart
Connect to Google Analytics with Nango and see data flow in 2 minutes.Create an integration
In Nango (free signup), go to Integrations -> Configure New Integration -> Google Analytics.
Nango has credentials you can use for testing. Activate them in the dashboard.
Authorize Google Analytics
Go to Connections -> Add Test Connection -> Authorize, then log in to Google Analytics. Later, youβll let your users do the same directly from your app.
Call the Google Analytics API
Letβs make your first request to the Google Analytics Admin API (fetch a list of accounts). Replace the placeholders below with your secret key, integration ID, and connection ID:Or fetch credentials with the Node SDK or API.β
Youβre connected! Check the Logs tab in Nango to inspect requests.
- cURL
- Node
Implement Nango in your app
Follow our Auth implementation guide to integrate Nango in your app.To obtain your own production credentials, follow the setup guide linked below.
π Google Analytics Integration Guides
Nango maintained guides for common use cases.-
How to register your own Google Analytics OAuth app
Register an OAuth app with Google Analytics and obtain credentials to connect it to Nango - Google App & Security Review Pass Googleβs OAuth app verification to go to production
π§© Pre-built syncs & actions for Google Analytics
Enable them in your dashboard. Extend and customize to fit your needs.Data Streams
| Function name | Description | Type | Source code |
|---|---|---|---|
create-data-stream | Create a data stream for a GA4 property. | Action | π Github |
Properties
| Function name | Description | Type | Source code |
|---|---|---|---|
create-property | Create a GA4 property under an account. | Action | π Github |
update-property | Update a GA4 property. | Action | π Github |
Reporting
| Function name | Description | Type | Source code |
|---|---|---|---|
get-metadata | Retrieve GA4 dimensions and metrics metadata. | Action | π Github |
run-pivot-report | Run a GA4 pivot report. | Action | π Github |
Reports
| Function name | Description | Type | Source code |
|---|---|---|---|
batch-run-reports | Run multiple GA4 reports in one request. | Action | π Github |
run-realtime-report | Run a realtime GA4 report. | Action | π Github |
run-report | Run a GA4 report for a property | Action | π Github |
Others
| Function name | Description | Type | Source code |
|---|---|---|---|
archive-conversion-event | Archive a GA4 conversion event. | Action | π Github |
create-conversion-event | Create a conversion event for a GA4 property. | Action | π Github |
update-data-stream | Update a GA4 data stream. | Action | π Github |
accounts | Sync accessible Google Analytics accounts. | Sync | π Github |
audiences | Sync GA4 audiences for properties. | Sync | π Github |
conversion-events | Sync configured GA4 key events (formerly conversion events) | Sync | π Github |
data-streams | Sync web, iOS, and Android data streams for GA4 properties. | Sync | π Github |
properties | Sync GA4 properties across accessible accounts. | Sync | π Github |