Skip to main content

Google Analytics Component

Manage Google Analytics

Component key: google-analytics

Description#

Google Analytics is Google's platform of analytics tooling. This component allows you to manage accounts and user access to those accounts.

Google Analytics Connections#

Google Analytics OAuth 2.0#

The Google Analytics component authenticates requests through Google's OAuth 2.0 service.

To create a Google Analytics developer account and authenticate, follow their Configure OAuth Consent guide

Now, you will have to configure OAuth 2.0 settings in Prismatic. Create a new Google Analytics connection of type OAuth 2.0.

  • For Client ID and Client Secret enter the values that you got from the Google Cloud Platform auth settings.
  • For Scopes choose from the list found on Google's service scopes documentation
InputDefaultNotes
Input
Authorize URL
string
/ Required
Hidden Field
Default
https://accounts.google.com/o/oauth2/v2/auth?access_type=offline&prompt=consent
Notes
The OAuth 2.0 Authorization URL for Google Calendar
Input
Client ID
string
/ Required
Default
Notes
Provide a string value for the client Id of your OAuth 2.0 application.
Input
Client Secret
password
/ Required
Default
Notes
Provide a string value for the client secret of your OAuth 2.0 application.
Input
Scopes
string
/ Required
Default
https://www.googleapis.com/auth/analytics https://www.googleapis.com/auth/analytics.manage.users
Notes
A space-delimited set of one or more scopes to get the user's permission to access.
Input
Token URL
string
/ Required
Hidden Field
Default
https://oauth2.googleapis.com/token
Notes
The OAuth 2.0 Token URL for Google Analytics

Data Sources#

Account Names#

A picklist of account names | key: accountNames | type: picklist

InputNotes
Input
Connection
connection
/ Required
Notes
 

Actions#

Get Account By Name#

Fetch an account with the provided name | key: accountByName

InputNotes
Input
Account Name
string
/ Required
Notes
 
Input
Connection
connection
/ Required
Notes
 

Link User to Account#

Link a User by email to specified Account | key: addUser

InputNotes
Input
Account ID
string
/ Required
Notes
 
Input
Connection
connection
/ Required
Notes
 
Input
Email
string
/ Required
Notes
 

List Accounts#

Paginated listing of Accounts | key: listAccounts

InputDefaultNotes
Input
Connection
connection
/ Required
Default
 
Notes
 
Input
Items Per Page
string
/ Required
Default
1000
Notes
 
Input
Start Index
string
/ Required
Default
1
Notes
 

Raw Request#

Issue a raw HTTP request | key: rawRequest

InputDefaultNotesExample
Input
Connection
connection
/ Required
Default
 
Notes
 
Example
 
Input
Data
string
Default
Notes
The HTTP body payload to send to the URL. Must be a string or a reference to output from a previous step.
Example
{"exampleKey": "Example Data"}
Input
Debug Request
boolean
Default
false
Notes
Enabling this flag will log out the current request.
Example
 
Input
File Data
string
Key Value List
Default
Notes
File Data to be sent as a multipart form upload.
Example
[{key: "example.txt", value: "My File Contents"}]
Input
Form Data
string
Key Value List
Default
Notes
The Form Data to be sent as a multipart form upload.
Example
[{"key": "Example Key", "value": new Buffer("Hello World")}]
Input
Header
string
Key Value List
Default
Notes
A list of headers to send with the request.
Example
User-Agent: curl/7.64.1
Input
Max Retry Count
string
Default
0
Notes
The maximum number of retries to attempt.
Example
 
Input
Method
string
/ Required
Default
Notes
The HTTP method to use.
Example
 
Input
Query Parameter
string
Key Value List
Default
Notes
A list of query parameters to send with the request. This is the portion at the end of the URL similar to ?key1=value1&key2=value2.
Example
 
Input
Response Type
string
/ Required
Default
json
Notes
The type of data you expect in the response. You can request json, text, or binary data.
Example
 
Input
Retry On All Errors
boolean
Default
false
Notes
If true, retries on all erroneous responses regardless of type.
Example
 
Input
Retry Delay (ms)
string
Default
0
Notes
The delay in milliseconds between retries.
Example
 
Input
Timeout
string
Default
Notes
The maximum time that a client will await a response to its request
Example
2000
Input
URL
string
/ Required
Default
Notes
This is the URL to call.
Example
/sobjects/Account
Input
Use Exponential Backoff
boolean
Default
false
Notes
Specifies whether to use a pre-defined exponential backoff strategy for retries.
Example