Learn R Programming

lares (version 4.7)

queryGA: Queries on Google Analytics

Description

This function lets the user query Google Analytics with its API. More about the documentation and parameters in googleAnalyticsR's google_analytics or Google Analytics' https://developers.google.com/analytics/devguides/reporting/core/dimsmetsAPI

Usage

queryGA(account = "comparamejor", 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())

Arguments

account

Character. Personal named accounts

creds

Character. Credential's user (see get_credentials)

token_dir

Character. Credential's user (see get_credentials)

metrics

Character. Which metrics we wish to bring

dimensions

Character. Which dimensions we wish to bring

met_filters, dim_filters

A filter_clause_ga4 for filtering metrics/dimensions. Check googleAnalyticsR::google_analytics()

start

Date. Start date for the report

end

Date. End date for the report

See Also

Other Connection: get_tweets, readGS, writeGS