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:
  • App 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 (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 (previously the Catalog 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. For more information, see Managing accounts.

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.

Object Action Description
Account user links Retrieve account user links Lists account-user links for a given account
Custom data sources Retrieve custom data sources Lists custom data sources to which the user has access
Custom dimensions Retrieve custom dimensions Lists custom dimensions to which the user has access
Custom metrics Retrieve custom metrics Lists custom metrics to which the user has access
Filters Retrieve filters Lists all filters for an account
Goals Retrieve goals Lists goals to which the user has access
Multi-channel funneling reports Retrieve MCF reports Returns analytics Multi-Channel Funnels data for a view (profile)
Profile filter links Retrieve profile filter links Lists all profile filter links for a profile
Profile user links Retrieve profile user links Lists profile-user links for a given view (profile)
Profiles Retrieve profiles Lists views (profiles) to which the user has access
Web properties Retrieve web properties Lists web properties to which the user has access