google_analytics_bq(projectId, datasetId, start = NULL, end = NULL, metrics = NULL, dimensions = NULL, sort = NULL, filters = NULL, max_results = 100, query = NULL, return_query_only = FALSE, bucket = NULL, download_file = NULL)
Requires installation of bigQueryR and authentication under ga_bq_auth()
or googleAuthR::gar_auth() with BigQuery scope set.
View your projectIds upon authentication via bqr_list_projects
No segments for now.
Goals are not specified in BQ exports, so you need to look at how you define them and replicate per view e.g. unique pageviews or unique events.
Custom dimensions can be specified as sesion or hit level, so ignoring the setting in GA interface.
You can get a sample Google Analytics dataset in bigquery by following the instructions here: https://support.google.com/analytics/answer/3416091?hl=en