Google OAuth2 Account
Overview
You can use this account type to connect Google Analytics Snap with data sources that use the Google OAuth2 Account.
Note: The Google Analytics Snap Pack will soon be deprecated. We recommend that you migrate to the Google Analytics 4 Snap Pack.
Prerequisites
- A valid account with the required permissions.
Limitations and known issues
None.
Account settings

Legend:
- Expression icon (
): JavaScript syntax to access SnapLogic Expressions to set field values dynamically (if enabled). If disabled, you can provide a static value. Learn more.
- SnapGPT (
): Generates SnapLogic Expressions based on natural language using SnapGPT. Learn more.
- Suggestion icon (
): Populates a list of values dynamically based on your Account configuration.
- Upload
: Uploads files. Learn more.
Field / field set | Type | Description |
---|---|---|
Label | String |
Required.
Specify a unique label for the account.
Default value: N/A Example: Google OAuth2 Account |
Access token | String |
Required.
Specify the access token for the application.
The retrieval of the access token is done when setting up the account for the endpoint.
There, the OAuth2 flow will be executed and the resulting access token will be stored in this property.
The access token might be refreshable, in that case an optional refresh token can be stored.
The user must get a new access token if the access token has expired and no refresh token was defined or both the access and the refresh token have expired.
Default value: N/A Example: Value is encrypted |
Refresh token | String |
Required.
Specify the refresh token for the application.
The retrieval of the refresh token is done when setting up the account for the endpoint.
There, the OAuth2 flow will be executed and the resulting refresh token can be stored in this property.
If the refresh token is stored, then the access token can be refreshed automatically before it expires.
Default value: N/A |
Access token expiration | String |
Required.
Specify the access token expiration value.
Default value: N/A Example: 1186346116 |
OAuth2 Endpoint | String | Required. Specify the authorization endpoint to authorize the application. Default value: https://accounts.google.com/o/oauth2/auth Example: https://accounts.google.com/o/oauth2/auth |
OAuth2 Token | String | Required. Specify the token endpoint to get the access token. Default value: https://oauth2.googleapis.com/token Example: https://oauth2.googleapis.com/token |
Auth endpoint config | Provides custom properties for the OAuth2 auth endpoint. | |
Access type | String | Specify the access type for the token, if offline, then it will be persisted in the account. Default value: offline Example: online |
Approval prompt | String | Specify the approval type for the token. Default value: force Example: auto |
Application scope | String | Specify the scope for the applications execution. As an example, the Snap could define that only a read of data by the application should be allowed. Default value: https://www.googleapis.com/auth/analytics.readonly Example: https://www.googleapis.com/auth/gmail.send |
Auto-refresh token | String |
Required.
Select to refresh the token automatically using the refresh token if the property is enabled.
Otherwise, the token might expire and will not be automatically refreshed.
Default status: Deselected |