Description Usage Arguments Details Value See Also Examples
This is the recommended way to get all your account details for your user, including the web property and View IDs. The $viewId
column contains the ID you need for the data fetching functions such as google_analytics.
1 | ga_account_list(type = c("universal", "ga4", "data"))
|
type |
Whether to get account summary from universal analytics of GA4 (App_Web) properties |
Get a summary of all your accounts, web properties and views your authenticated user can see.
a dataframe of all account, webproperty and view data
https://developers.google.com/analytics/devguides/config/mgmt/v3/mgmtReference/management/accountSummaries/list
Other account structure functions:
ga_accounts()
,
ga_view_list()
,
ga_view()
,
ga_webproperty_list()
,
ga_webproperty()
1 2 3 4 5 6 7 8 9 10 11 | ## Not run:
library(googleAnalyticsR)
ga_auth()
al <- ga_account_list()
al$viewId
## get account summary of GA4 properties
ga_account_list("ga4")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.