How to use IBM App Connect with Google Analytics

Google Analytics is a web analytics service that provides tools to analyze traffic on websites and applications across your business. Use IBM® App Connect to connect Google Analytics to other applications.

Availability:
  • A connector in IBM App Connect Enterprise as a ServiceApp Connect Enterprise as a Service connector
  • A local connector in a Designer instance of IBM App Connect in containers (Continuous Delivery release)Local connector in containers (Continuous Delivery release)
  • A local connector in a Designer instance of IBM App Connect in containers (Long Term Support)Local connector in containers (Long Term Support release)
  • A local connector in a Designer instance of IBM App Connect in containers (Support Cycle 2)Local connector in containers (Long Term Support Cycle-2 release)
The following information describes how to use IBM App Connect to connect Google Analytics to your other applications.

Supported product and API versions

To find out which product and API versions this connector supports, see Detailed System Requirements on the IBM Support page.

What to consider first

Before you use IBM App Connect with Google Analytics, ensure that you enable Analytics on your Google account. To sign up for Google Analytics, see Google Analytics Sign Up.

Connecting to Google Analytics

Complete the connection fields that you see in the App Connect Designer Connect > Applications and APIs page or flow editor. If necessary, work with your Google Analytics administrator to obtain these values.

Google Analytics authorization types and connection fields:

Authorization type Connection fields Applicability
Use the application's website to sign in (OAUTH 2.0 AUTH CODE) Application client ID App Connect Enterprise as a Service
Application client secret
Provide credentials for App Connect to use (BASIC OAUTH) Application client ID App Connect Enterprise as a Service and App Connect in containers
Application client secret
OAuth Access token
OAuth Refresh token
The following table contains descriptions of the connection fields.
Tip:

To connect using the website OAuth 2.0 authorization method, see Connecting to a Google application using the website OAuth 2.0 authorization method

To generate the values for Application client ID, Application client secret, Access token, and Refresh token see Getting OAuth client ID, client secret, access token, and refresh token for Google applications.
Connection field Description
Application client ID The unique identifier that is generated from the Google API Console that maps to specific project requests.
Application client secret The application client secret for the unique application client ID created for a specific project.
OAuth Access token The access token that is generated from the application client ID and client secret.
OAuth Refresh token The refresh token that is generated from the application client ID and client secret.

To connect to a Google Analytics endpoint from the App Connect Designer Applications and APIs page for the first time, expand Google Analytics, then click Connect.

Tip:

Before you use the account that is created in App Connect in a flow, rename the account to something meaningful that helps you to identify it. To rename the account on the Applications and APIs page, select the account, open its options menu (⋮), then click Rename Account.

Events and actions

Google Analytics events

These events are for changes in this application that trigger a flow to start completing the actions in the flow.

Note: Events are not available for changes in this application. You can trigger a flow in other ways, such as at a scheduled interval or at specific dates and times.

Google Analytics actions

Your flow completes these actions on this application.

Account user links
Retrieve account user links
Custom data sources
Retrieve custom data sources
Custom dimensions
Retrieve custom dimensions
Custom metrics
Retrieve custom metrics
Filters
Retrieve filters
Goals
Retrieve goals
Multi-channel funneling reports
Retrieve MCF reports
Profile filter links
Retrieve profile filter links
Profile user links
Retrieve profile user links
Profiles
Retrieve profiles
Web properties
Retrieve web properties