Google Analytics account details
To establish a connection to Google Analytics, you must add an account that defines the account details to connect with. You can define these details by creating a configuration object in the App Connect Dashboard, the Red Hat® OpenShift® web console or CLI, or the Kubernetes CLI.
Account parameters
You can define one or more accounts for Google Analytics.
For each account that you require, you can specify a new set of account details in any of the following ways:
- If you are using the App Connect Dashboard, either complete the
Account details fields in the
Create configuration
panel, or specify the account parameters in an accounts.yaml file before importing it into theCreate configuration
panel. For more information, see Accounts type. - If you are using the Red Hat OpenShift web console or CLI, or the Kubernetes CLI, specify the account parameters in an accounts.yaml file, and then use this configuration file to create a configuration object. For more information, see Creating the file for a configuration object of type Accounts.
The set of required and optional Account fields or parameters are listed in the following table.
For information about locating the values for these account parameters, see Getting OAuth client ID, client secret, access token, and refresh token for Google applications.
Field | Parameter | Values | Condition | Description |
---|---|---|---|---|
Account name |
name |
User defined |
Required |
The name of a Google Analytics account that is used in the exported flow. |
Application client ID |
clientId |
User defined |
Required |
A unique client ID that identifies App Connect to the Google OAuth servers. You create an OAuth client ID in the Google API Console to tie requests to specific projects. |
Application client secret |
clientSecret |
User defined |
Required |
The client secret that is used with the client ID to identify App Connect to the Google OAuth servers. You can get the client secret from the Google API Console. |
OAuth access token |
accessToken |
User defined |
Required |
When App Connect accesses a Google API by using OAuth 2.0, the access token allows access to that API. You get an access token from the Google Developers OAuth 2.0 Playground. |
OAuth refresh token |
refreshToken |
User defined |
Required |
When an access token expires, the refresh token allows you to get a new access token. You get a refresh token from the Google Developers OAuth 2.0 Playground. |
Example
accounts:
googleanalytics:
- name: Account 1
credentials:
clientId: 123456789012-1abc2de345fg6hijk7lmno8pqrstuvwx.apps.googleusercontent.com
clientSecret: AbC12deFgHij_Kl34Mn5opqr
accessToken: ab12.Cd-3E4FgHijkLmnoPqRs5_tuvwxy6Za_BcdeFgj-IjKlMnOpQr78R901stuVWXyzaBCd2defgHIJkLmNOPQRstUvw3x
refreshToken: 1//23a4bCD5EfgUIJkLMNOPQRWTUVwX-Y6ZabCdEfgh7iJk8lMNOPqrSTUVW9xY0zaBcD12dEFgh
endpoint: {}