Learn R Programming

⚠️There's a newer version (1.2.0) of this package.Take me there.

googleAnalyticsR

Get more examples and tutorials at the googleAnalyticsR website

Wasson?

Work is currently focused on quashing bugs and updating the BigQuery parser.

If you find any bugs please log any problems here in the issues tracker.

Install

You also need googleAuthR

install.packages("googleAuthR")
install.packages("googleAnalyticsR")

Development version off github

devtools::install_github("MarkEdmondson1234/googleAnalyticsR")

Copy Link

Version

Install

install.packages('googleAnalyticsR')

Monthly Downloads

9,539

Version

0.4.1

License

MIT + file LICENSE

Maintainer

Mark Edmondson

Last Published

June 19th, 2017

Functions in googleAnalyticsR (0.4.1)

cohort

Cohort object
cohortGroup

Cohort Group object
checkPrefix

check it starts with ga: and if not puts it on
chunkify

Break down a request into unsampled chunks
date_ga4

Make a date object
dim_filter

Make a dimension filter object
authDropdownUI

authDropdown UI [Shiny Module]
cat0

if argument is NULL, no line output
dimension_ga4

Make a dimension object
dynamicSegment

Dynamic Segment v4 object
google_analytics_account_list

Get account summary including the ViewId
ga_accounts

Get account list
ga_filter_list

List filters for account
ga_filter_view

Get specific filter for view (profile)
ga_remarketing_get

Get a remarketing audience
error.message

Get the error message
expect_null_or_s3_class

Expect NULL or class (s3)
fetch_google_analytics_4_slow

Fetch GAv4 requests one at a time
filter_clause_ga4

Make a dimension or metric filter clause object
ga_adwords

Get AdWords Link meta data
ga_adwords_list

List AdWords
ga_custom_vars_list

List Custom Dimensions or Metrics
anti_sample

Get a GA request with anti-sampling
authDropdown

authDropdown [Shiny Module]
expect_null_or_type

Expect NULL or type
ga_remarketing_list

List remarketing audiences
google_analytics

Get Google Analytics v3 data
google_analytics_4

Get Google Analytics v4 data (single request)
makePivotNames

Make pivot column names
fetch_google_analytics_4

Fetch multiple GAv4 requests
ga_auth

Authenticate with Google Analytics OAuth2
ga_custom_datasource

List Custom Data Sources
aggregateGAData

Aggregate a Google Analytics dataframe over inputted columns
allowed_metric_dim

Create named list of allowed GA metrics/dimensions
cohort_dimension_check

Check the request has cohort dimensions
ga_filter_view_list

List filters for view (profile)
ga_goal

Get goal
ga_unsampled_list

List Unsampled Reports
ga_users_list

List Users
google_analytics_4_parse

ga v4 data parsing
google_analytics_4_parse_batch

ga v4 parse batching
makeOrFilters

Make orFiltersForSegment
ga_custom_upload_list

List Custom Data Source Uploads
ga_custom_vars

Get Custom Dimensions or Metrics
ga_segment_list

Get segments user has access to
ga_unsampled

Get Unsampled Report Meta Data
getColNameOfClass

Gets the names of a dataframe's columns of a certain class
googleAnalyticsR

Library for getting Google Analytics data into R
google_analytics_meta

Get current dimensions and metrics available in GA API.
hourly_anti_sample

hourly get request with anti-sampling
multi_select

multi_select [Shiny Module]
multi_selectUI

multi_select UI [Shiny Module]
cohort_metric_check

Check the request has cohort metrics
ga_custom_upload

Custom Data Source Upload Status
ga_custom_upload_file

Upload data to Google Analytics
ga_experiment_list

List Experiments
segmentBuilder

Create a GAv4 Segment Builder
segmentBuilderUI

Create a GAv4 Segment Builder
segmentObj_ga4

Segment objects
segmentSequenceStep

segmentSequenceStep
unitToList

Allow unit lists
ga_filter

Get specific filter for account
ga_goal_list

List goals
ga_remarketing_estimate

Estimate number of users added to the segment yesterday
make_cohort_group

Create a cohort group
make_ga_4_req

Make a Google Analytics v4 API fetch
met_filter

Make a metric filter object
reexports

Objects exported from other packages
rmNullObs

Recursively step down into list, removing all such objects
segment_ga4

Make a segment object for use
segment_vector_sequence

Make sequenceSegment
ga_experiment

Experiments Meta data
ga_view

Get single View (Profile)
ga_view_list

List View (Profile)
ga_webproperty

Get web property
ga_webproperty_list

List web properties
is.error

Is this a try error?
listNameToDFCol

Add name of list entry of dataframe to dataframe column
meta

Google Analytics API metadata
metric_ga4

Make a metric object
segmentChain

segmentChain
makePivotData

Make pivot data rows
myMessage

Custom message log level
orFiltersForSegment

orFiltersForSegment
google_analytics_bq

Get Google Analytics 360 BigQuery data
google_analytics_bq_asynch

Asynch fetch
idempotency

Idempotency
segmentChainUI

segmentChain UI
segmentElementUI

A GAv4 segment element row
segmentFilter

Segment Filter
segmentDefinition

Segment Definition
segmentDimensionFilter

segmentDimensionFilter
segmentFilterClause

segmentFilterClause
is.NullOb

A helper function that tests whether an object is either NULL _or_ a list of NULLs
order_type

Make an OrderType object
parse_ga_account_summary

New parse GA account summary
segmentMetricFilter

segmentMetricFilter
simpleSegment

Simple Segment
timestamp_to_r

Timestamp to R date
pivot_ga4_parse

pivot data parsing
segment_define

Make a segment definition
segment_element

Make a segment element
segment_vector_simple

Make a simple segment vector
sequenceSegment

sequenceSegment
pivot_ga4

Make a pivot object