Google Analytics

Learn how to use Google Analytics with Composio

Overview

SLUG

GOOGLE_ANALYTICS

Description

Google Analytics tracks and reports website traffic, user behavior, and conversion data, enabling marketers to optimize online performance and customer journeys

Authentication Details

client_id
stringRequired
client_secret
stringRequired
full
stringDefaults to https://analyticsdata.googleapis.comRequired
oauth_redirect_uri
stringDefaults to https://backend.composio.dev/api/v1/auth-apps/add
scopes
stringDefaults to https://www.googleapis.com/auth/analytics.readonly,https://www.googleapis.com/auth/analytics,https://www.googleapis.com/auth/userinfo.profile
bearer_token
string

Tools

SLUG: GOOGLE_ANALYTICS_CREATE_EXPANDED_DATA_SET

Tool to create an expanded data set for a property. use when you need to combine specific dimensions and metrics into a custom dataset after property creation.

Action Parameters

expandedDataSet
objectRequired
parent
stringRequired

Action Response

data
objectRequired
error
string
successful
booleanRequired

SLUG: GOOGLE_ANALYTICS_GET_ACCOUNT

Tool to retrieve a single account by its resource name. use when you need detailed account info after confirming the account resource name (e.g., accounts/100).

Action Parameters

name
Required

Action Response

data
objectRequired
error
string
successful
booleanRequired

SLUG: GOOGLE_ANALYTICS_LIST_ACCOUNTS

Tool to list all accounts accessible by the caller. use when you need to enumerate all google analytics accounts your credentials can access.

Action Parameters

pageSize
integer
pageToken
string
showDeleted
boolean

Action Response

data
objectRequired
error
string
successful
booleanRequired

SLUG: GOOGLE_ANALYTICS_LIST_AUDIENCES

Tool to list all audiences on a property. use when you need to fetch all audiences for a ga4 property after confirming its existence.

Action Parameters

pageSize
integer
pageToken
string
parent
Required

Action Response

data
objectRequired
error
string
successful
booleanRequired