View source: R/google_analytics.R
| queryGA | R Documentation |
This function lets the user query Google Analytics with its API.
More about the documentation and parameters in
googleAnalyticsR::google_analytics() or Google Analytics' API.
queryGA(
account,
creds = NA,
token_dir = NA,
metrics = "sessions",
dimensions = "date",
met_filters = NULL,
dim_filters = NULL,
start = lubridate::floor_date(Sys.Date(), "month"),
end = Sys.Date()
)
account |
Character. Personal named accounts |
creds |
Character. Credential's user (see |
token_dir |
Character. Credential's directory (see |
metrics |
Character. Which metrics we wish to bring |
dimensions |
Character. Which dimensions we wish to bring |
met_filters, dim_filters |
A |
start |
Date. Start date for the report |
end |
Date. End date for the report |
data.frame with the API GET request tabulated results.
Other Credentials:
db_download(),
db_upload(),
encrypt_file(),
get_credentials(),
get_tweets(),
mail_send(),
queryDB(),
slackSend(),
stocks_file()
Other Google:
filesGD(),
gtrends_related(),
readGS()
Other API:
bring_api(),
fb_accounts(),
fb_ads(),
fb_creatives(),
fb_insights(),
fb_process(),
fb_report_check(),
fb_rf(),
fb_token(),
gemini_ask(),
gpt_ask(),
slackSend()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.