Google Analytics

Integrate your application with the Google Analytics API

🚀 Quickstart

Connect to Google Analytics with Tenklo and see data flow in 2 minutes.

Create an integration

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.

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 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.

Implement Tenklo in your app

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.

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 nameDescriptionTypeSource code
archive-conversion-eventArchive a GA4 conversion event.Action🔗 Github
batch-run-reportsRun multiple GA4 reports in one request.Action🔗 Github
create-conversion-eventCreate a conversion event for a GA4 property.Action🔗 Github
create-data-streamCreate a data stream for a GA4 property.Action🔗 Github
create-propertyCreate a GA4 property under an account.Action🔗 Github
get-metadataRetrieve GA4 dimensions and metrics metadata.Action🔗 Github
run-pivot-reportRun a GA4 pivot report.Action🔗 Github
run-realtime-reportRun a realtime GA4 report.Action🔗 Github
run-reportRun a GA4 report for a propertyAction🔗 Github
update-data-streamUpdate a GA4 data stream.Action🔗 Github
update-propertyUpdate a GA4 property.Action🔗 Github
accountsSync accessible Google Analytics accounts.Sync🔗 Github
audiencesSync GA4 audiences for properties.Sync🔗 Github
conversion-eventsSync configured GA4 key events (formerly conversion events)Sync🔗 Github
data-streamsSync web, iOS, and Android data streams for GA4 properties.Sync🔗 Github
propertiesSync GA4 properties across accessible accounts.Sync🔗 Github

On this page