Google Analytics
Integrate your application with the Google Analytics API
🚀 Quickstart
Connect to Google Analytics with Tenklo and see data flow in 2 minutes.
In Tenklo (free signup), go to Integrations -> Configure New Integration -> Google Analytics.
Tenklo has credentials you can use for testing. Activate them in the dashboard.
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.
Let's make your first request to the Google Analytics Admin API (fetch a list of accounts). Replace the placeholders below with your Environment API key, integration ID, and connection ID:
curl "https://api.tenklo.dev/proxy/v1beta/accounts?pageSize=10" \
-H "Authorization: Bearer <NANGO-API-KEY>" \
-H "Provider-Config-Key: <INTEGRATION-ID>" \
-H "Base-Url-Override: https://analyticsadmin.googleapis.com" \
-H "Connection-Id: <CONNECTION-ID>"Or fetch credentials with the Node SDK or API.
✅ You're connected! Check the Logs tab in Tenklo to inspect requests.
Follow our Auth implementation guide to integrate Tenklo in your app.
To obtain your own production credentials, follow the setup guide linked below.
📚 Google Analytics Integration Guides
Tenklo 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 Tenklo -
Google App & Security Review Pass Google's OAuth app verification to go to production
Official docs: Google Analytics API documentation
🧩 Pre-built syncs & actions for Google Analytics
Explore Nango-provided actions in your dashboard. Extend and customize them to fit your needs.
Others
| Function name | Description | Type | Source code |
|---|---|---|---|
archive-conversion-event | Archive a GA4 conversion event. | Action | 🔗 Github |
batch-run-reports | Run multiple GA4 reports in one request. | Action | 🔗 Github |
create-conversion-event | Create a conversion event for a GA4 property. | Action | 🔗 Github |
create-data-stream | Create a data stream for a GA4 property. | Action | 🔗 Github |
create-property | Create a GA4 property under an account. | Action | 🔗 Github |
get-metadata | Retrieve GA4 dimensions and metrics metadata. | Action | 🔗 Github |
run-pivot-report | Run a GA4 pivot report. | Action | 🔗 Github |
run-realtime-report | Run a realtime GA4 report. | Action | 🔗 Github |
run-report | Run a GA4 report for a property | Action | 🔗 Github |
update-data-stream | Update a GA4 data stream. | Action | 🔗 Github |
update-property | Update a GA4 property. | 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 |