Description Usage Arguments Details Value Author(s) References See Also Examples
This function launches an URL in a broswer for authentication. Once authenticated, the value after code= appearing in the resulting URL needs to be manually copied and stored for later use. This code will allow you to get a refresh token that can be refreshed until revoked. This should be a one-time process unless code is revoked,lost or expires before used to get a refresh token. If exists, the environmental variable GAR_CLIENT_ID will be used by default.
1 | getCode(client_id)
|
client_id |
Client ID found in API Console. String format. |
Function opens a webiste URL in a browser for authenication. A code can be retrieved from the redirect URL.
Code is a string to be used in conjunction with gaRefresh() function.
Andrew Geisler
https://developers.google.com/analytics/devguides/reporting/core/v3/
GAR
gaRequest
getCode
getRefresh
tokenRefresh
getMeta
1 2 3 | getCode(
client_id="ABCDEFG"
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.