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()
)Character. Personal named accounts
Character. Credential's user (see get_creds())
Character. Credential's directory (see get_creds())
Character. Which metrics we wish to bring
Character. Which dimensions we wish to bring
A filter_clause_ga4 for filtering
metrics/dimensions. Check googleAnalyticsR::google_analytics().
Date. Start date for the report
Date. End date for the report
data.frame with the API GET request tabulated results.
Other Credentials:
db_download(),
db_upload(),
get_credentials(),
get_tweets(),
mailSend(),
queryDB(),
slackSend(),
stocks_file(),
stocks_report()
Other Google:
filesGD(),
readGS(),
trendsRelated(),
trendsTime(),
writeGS()
Other API:
bring_api(),
fb_accounts(),
fb_ads(),
fb_creatives(),
fb_insights(),
fb_posts(),
fb_post(),
fb_process(),
fb_rf(),
fb_token(),
li_auth(),
li_profile(),
slackSend()