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

Install

You also need googleAuthR

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

Development version off github

remotes::install_github("MarkEdmondson1234/googleAnalyticsR")

Copy Link

Version

Install

install.packages('googleAnalyticsR')

Monthly Downloads

9,460

Version

0.5.0

License

MIT + file LICENSE

Maintainer

Mark Edmondson

Last Published

February 16th, 2018

Functions in googleAnalyticsR (0.5.0)

anti_sample

Get a GA request with anti-sampling
allowed_metric_dim

Create named list of allowed GA metrics/dimensions
ga_custom_upload_list

List Custom Data Source Uploads
dynamicSegment

Dynamic Segment v4 object
authDropdownUI

authDropdown UI [Shiny Module]
ga_adwords

Get AdWords Link meta data
ga_filter_view

Get specific filter for view (profile)
ga_users_list

List Users
ga_filter_view_list

List filters for view (profile)
ga_unsampled_list

List Unsampled Reports
ga_accounts

Get account list
ga_custom_vars

Get Custom Dimensions or Metrics
dimension_ga4

Make a dimension object
ga_custom_upload

Custom Data Source Upload Status
ga_custom_upload_file

Upload data to Google Analytics
date_ga4

Make a date object
dim_fil_ga4-class

`dim_fil_ga4` class.
cat0

if argument is NULL, no line output
error.message

Get the error message
ga_filter_update

Updates an existing filter.
fetch_google_analytics_4

Fetch multiple GAv4 requests
ga_filter_update_filter_link

Update an existing profile filter link. Patch semantics supported
ga_cache_call

Setup caching of API calls
fetch_google_analytics_4_slow

Fetch GAv4 requests one at a time
ga_auth

Authenticate with Google Analytics OAuth2
ga_custom_vars_list

List Custom Dimensions or Metrics
ga_webproperty

Get web property
ga_experiment

Experiments Meta data
ga_adwords_list

List AdWords
ga_remarketing_get

Get a remarketing audience
ga_remarketing_estimate

Estimate number of users added to the segment yesterday
ga_webproperty_list

List web properties
chunkify

Break down a request into unsampled chunks
getColNameOfClass

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

Get single View (Profile)
cohort_metric_check

Check the request has cohort metrics
ga_custom_datasource

List Custom Data Sources
google_analytics_4_parse

ga v4 data parsing
cohort_dimension_check

Check the request has cohort dimensions
googleAnalyticsR

Library for getting Google Analytics data into R
google_analytics_4_parse_batch

ga v4 parse batching
met_fil_ga4-class

`met_fil_ga4` class.
ga_experiment_list

List Experiments
ga_filter

Get specific filter for account
ga_filter_add

Create a new filter and add it to the view (optional).
met_filter

Make a metric filter object
ga_filter_apply_to_view

Apply an existing filter to view.
ga_goal

Get goal
ga_view_list

List View (Profile)
multi_select

multi_select [Shiny Module]
is.NullOb

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

Get Google Analytics v4 data
ga_filter_delete

Delete a filter from account or remove from view.
ga_goal_list

List goals
is.error

Is this a try error?
myMessage

Custom message log level
segmentBuilder

Create a GAv4 Segment Builder
google_analytics_3

Get Google Analytics v3 data (formerly google_analytics())
orFiltersForSegment

orFiltersForSegment
ga_filter_list

List filters for account
rmNullObs

Recursively step down into list, removing all such objects
ga_remarketing_list

List remarketing audiences
ga_unsampled

Get Unsampled Report Meta Data
ga_segment_list

Get segments user has access to
google_analytics_bq

Get Google Analytics 360 BigQuery data
multi_selectUI

multi_select UI [Shiny Module]
make_cohort_group

Create a cohort group
make_ga_4_req

Make a Google Analytics v4 API fetch
segmentFilter_ga4-class

`segmentFilter_ga4` class.
google_analytics_bq_asynch

Asynch fetch
makePivotData

Make pivot data rows
segmentMetricFilter

segmentMetricFilter
segmentDimensionFilter

segmentDimensionFilter
meta

Google Analytics API metadata
simpleSegment

Simple Segment
makePivotNames

Make pivot column names
segmentDefinition

Segment Definition
simpleSegment_ga4-class

`simpleSegment_ga4` class.
orFiltersForSegment_ga4-class

`orFiltersForSegment_ga4` class.
order_type

Make an OrderType object
segmentSequenceStep

segmentSequenceStep
metric_ga4

Make a metric object
segmentObj_ga4

Segment objects
segment_vector_sequence

Make sequenceSegment
segmentChainUI

segmentChain UI
segmentDef_ga4-class

`segmentDef_ga4` class.
segmentBuilderUI

Create a GAv4 Segment Builder
ga_unsampled_download

Download Unsampled Report from Google Drive
segment_vector_simple

Make a simple segment vector
segmentChain

segmentChain
segmentFilterClause

segmentFilterClause
segmentSequenceStep_ga4-class

`segmentSequenceStep_ga4` class.
google_analytics_meta

Get current dimensions and metrics available in GA API.
segment_define

Make a segment definition
segmentFilterClause_ga4-class

`segmentFilterClause_ga4` class.
timestamp_to_r

Timestamp to R date
unitToList

Allow unit lists
idempotency

Idempotency
listNameToDFCol

Add name of list entry of dataframe to dataframe column
sequenceSegment

sequenceSegment
sequenceSegment_ga4-class

`sequenceSegment_ga4` class.
makeOrFilters

Make orFiltersForSegment
parse_ga_account_summary

New parse GA account summary
pivot_ga4

Make a pivot object
pivot_ga4_parse

pivot data parsing
reexports

Objects exported from other packages
segmentElementUI

A GAv4 segment element row
segmentFilter

Segment Filter
segment_element

Make a segment element
segment_ga4

Make a segment object for use
checkPrefix

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

authDropdown [Shiny Module]
cohort

Cohort object
cohortGroup

Cohort Group object
aggregateGAData

Aggregate a Google Analytics dataframe over inputted columns
expect_null_or_s3_class

Expect NULL or class (s3)
expect_null_or_type

Expect NULL or type
dim_filter

Make a dimension filter object
filter_clause_ga4

Make a dimension or metric filter clause object
google_analytics_account_list

Get account summary including the ViewId