Skip to main content
Google Analytics logo

Google Analytics

Overview

Google Analytics API seamlessly blends the simplicity of data analysis with powerful insights. Connect with Google's Analytics API to create custom reporting tools, automate data retrieval, synchronize information across platforms, and visualize your analytics data in Superblocks.

Setting up Google Analytics

Create an access token

  1. Sign in to your Google account to access your account
  2. Visit the Google Developer Console by navigating to it
  3. Create a new project by starting one or selecting an existing one
  4. Enable the Google Analytics API within your project
  5. Create API credentials for your project to receive a client ID and client secret
  6. Configure the OAuth consent screen with the necessary details
  7. Specify the redirect URIs where users will be redirected after authentication when configuring Redirect URIs
  8. Specify the scopes required for your use-case
  9. Login with your Google Account on the integrations page if you want to use one account for all end-users

Learn more about Google Analytics API Authentication.

Add integration

Once you have an access token, you're ready to set up your Superblocks integration.

  1. In the web app, navigate to the Integrations page
  2. Click on the Google Analytics tile
  3. Name the integration
  4. Paste your credentials into the relevant fields
  5. Optionally, add more configurations to set credentials for different environments
  6. Click Create
success

Google Analytics connected Now you can use Google Analytics in any Application, Workflow, or Scheduled Job.

Use Google Analytics in APIs

Once your Google Analytics integration is created, you can start creating steps in Application backend APIs, Workflows, and Scheduled Jobs to call Google Analytics API actions. Google Analytics actions are REST requests. To learn more about REST requests in Superblocks, see the Building REST requests guide.

Supported actions

Get analytics data for a view

Returns Analytics data for a view (profile).

Get Multi-Channel Funnels data

Returns Analytics Multi-Channel Funnels data for a view (profile).

Get real time data for a view

Returns real time data for a view (profile).

List account summaries

Lists account summaries (lightweight tree comprised of accounts/properties/profiles) to which the user has access.

List accessible accounts

Lists all accounts to which the user has access.

List account-user links

Lists account-user links for a given account.

Add a new user to an account

Adds a new user to the given account.

Update permissions for a user

Updates permissions for an existing user on the given account.

Remove a user

Removes a user from the given account.

List all filters

Lists all filters for an account

Create a filter

Create a new filter.

List accessible filters

Returns filters to which the user has access.

Update a filter (put)

Updates an existing filter.

Update a filter (patch)

Updates an existing filter. This method supports patch semantics.

Delete a filter

Delete a filter.

List accessible web properties

Lists web properties to which the user has access.

Create a new property

Create a new property if the account has fewer than 20 properties. Web properties are visible in the Google Analytics interface only if they have at least one profile.

Get a web property

Gets a web property to which the user has access.

Update a web property (put)

Updates an existing web property.

Update a web property (patch)

Updates an existing web property. This method supports patch semantics.

List accessible custom data sources

List custom data sources to which the user has access.

Delete data from previous upload

Delete data associated with a previous upload.

List accessible uploads

List uploads to which the user has access.

Upload data for a custom data source

Upload data for a custom data source.

Get an upload

List uploads to which the user has access.

List accessible custom dimensions

Lists custom dimensions to which the user has access.

Create a custom dimension

Create a new custom dimension.

Get a custom dimension

Get a custom dimension to which the user has access.

Update a custom dimension (put)

Updates an existing custom dimension.

Update a custom dimension (patch)

Updates an existing custom dimension. This method supports patch semantics.

List accessible custom metrics

Lists custom metrics to which the user has access.

Create a custom metric

Create a new custom metric.

Get a custom metric

Get a custom metric to which the user has access.

Update a custom metric (put)

Updates an existing custom metric.

Update a custom metric (patch)

Updates an existing custom metric. This method supports patch semantics.

List Google Ads links for a web property

Lists webProperty-Google Ads links for a given web property.

Create a Google Ads link

Creates a webProperty-Google Ads link.

Get a Google Ads link

Returns a web property-Google Ads link to which the user has access.

Update a Google Ads link (put)

Updates an existing webProperty-Google Ads link.

Update a Google Ads link (patch)

Updates an existing webProperty-Google Ads link. This method supports patch semantics.

Delete a Google Ads link

Deletes a web property-Google Ads link.

List user links for a web property

Lists webProperty-user links for a given web property.

Add a user to a web property

Adds a new user to the given web property.

Update permissions for a user for a web property

Updates permissions for an existing user on the given web property.

Remove a user from a web property

Removes a user from the given web property.

List accessible views

Lists views (profiles) to which the user has access.

Create a view

Create a new view (profile).

Get a view

Gets a view (profile) to which the user has access.

Update a view (put)

Updates an existing view (profile).

Update a view (patch)

Updates an existing view (profile). This method supports patch semantics.

Delete a view

Deletes a view (profile).

List user links for a view

Lists profile-user links for a given view (profile).

Add a user to a view

Adds a new user to the given view (profile).

Update permissions for a user for a view

Updates permissions for an existing user on the given view (profile).

Remove a user from a view

Removes a user from the given view (profile).

Lists accessible experiments

Lists experiments to which the user has access.

Create an experiment

Create a new experiment.

Get an experiment

Returns an experiment to which the user has access.

Update an experiment (put)

Update an existing experiment.

Update an experiment (patch)

Update an existing experiment. This method supports patch semantics.

Delete an experiment

Delete an experiment.

List accessible goals

Lists goals to which the user has access.

Create a goal

Create a new goal.

Get a goal

Gets a goal to which the user has access.

Update a goal (put)

Updates an existing goal.

Update a goal (patch)

Updates an existing goal. This method supports patch semantics.

List all profile filter links

Lists all profile filter links for a profile.

Create a profile filter link

Create a new profile filter link.

Get a profile filter link

Returns a single profile filter link.

Update a profile filter link (put)

Update an existing profile filter link.

Update a profile filter link (patch)

Update an existing profile filter link. This method supports patch semantics.

Delete a profile filter link

Delete a profile filter link.

List accessible unsampled reports

Lists unsampled reports to which the user has access.

Create an unsampled report

Create a new unsampled report.

Get an unsampled report

Returns a single unsampled report.

Delete an unsampled report

Deletes an unsampled report.

List accessible remarketing audiences

Lists remarketing audiences to which the user has access.

Create a remarketing audience

Creates a new remarketing audience.

Get a remarketing audience

Gets a remarketing audience to which the user has access.

Update a remarketing audience (put)

Updates an existing remarketing audience.

Update a remarketing audience (patch)

Updates an existing remarketing audience. This method supports patch semantics.

Delete a remarketing audience

Delete a remarketing audience.

Hash a Client ID

Hashes the given Client ID.

List accessible segments

Lists segments to which the user has access.

List all columns for a report type

Lists all columns for a report type

Create an account ticket

Creates an account ticket.

Provision an account

Provision account.

Insert or update a user deletion request

Insert or update a user deletion request.
and 73 more

Generic HTTP Request

Every SaaS integration in Superblocks comes with a built in Generic HTTP Request Action. This is a powerful action you can use to call Google Analytics API endpoints not in the Superblocks supported actions.

To use this action simply add the method, path, required query parameters, and body for the desired endpoint.

info

Learn more about REST requests in Superblocks in our Building REST requests guide.

Generic HTTP Requests use the authentication set up and base URL you've configured for your integration, making it an easy for your team to extend Superblocks Integrations to meet their needs.