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,460

Version

0.4.2

License

MIT + file LICENSE

Maintainer

Mark Edmondson

Last Published

October 20th, 2017

Functions in googleAnalyticsR (0.4.2)

checkPrefix

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

Break down a request into unsampled chunks
aggregateGAData

Aggregate a Google Analytics dataframe over inputted columns
allowed_metric_dim

Create named list of allowed GA metrics/dimensions
cohort

Cohort object
cohortGroup

Cohort Group object
anti_sample

Get a GA request with anti-sampling
authDropdown

authDropdown [Shiny Module]
authDropdownUI

authDropdown UI [Shiny Module]
cat0

if argument is NULL, no line output
expect_null_or_type

Expect NULL or type
fetch_google_analytics_4

Fetch multiple GAv4 requests
ga_adwords

Get AdWords Link meta data
date_ga4

Make a date object
dim_filter

Make a dimension filter object
google_analytics_account_list

Get account summary including the ViewId
ga_accounts

Get account list
dimension_ga4

Make a dimension object
dynamicSegment

Dynamic Segment v4 object
ga_auth

Authenticate with Google Analytics OAuth2
ga_cache_call

Setup caching of API calls
ga_experiment

Experiments Meta data
ga_experiment_list

List Experiments
ga_remarketing_estimate

Estimate number of users added to the segment yesterday
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_filter

Get specific filter for account
ga_filter_list

List filters for account
ga_unsampled

Get Unsampled Report Meta Data
ga_unsampled_list

List Unsampled Reports
ga_custom_upload_file

Upload data to Google Analytics
ga_custom_upload_list

List Custom Data Source Uploads
ga_remarketing_list

List remarketing audiences
ga_segment_list

Get segments user has access to
cohort_dimension_check

Check the request has cohort dimensions
cohort_metric_check

Check the request has cohort metrics
ga_custom_datasource

List Custom Data Sources
ga_custom_upload

Custom Data Source Upload Status
ga_filter_view

Get specific filter for view (profile)
ga_remarketing_get

Get a remarketing audience
ga_view_list

List View (Profile)
ga_webproperty

Get web property
idempotency

Idempotency
is.NullOb

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

Library for getting Google Analytics data into R
google_analytics

Get Google Analytics v3 data
google_analytics_bq_asynch

Asynch fetch
google_analytics_meta

Get current dimensions and metrics available in GA API.
make_ga_4_req

Make a Google Analytics v4 API fetch
ga_filter_view_list

List filters for view (profile)
ga_goal

Get goal
ga_goal_list

List goals
google_analytics_4_parse_batch

ga v4 parse batching
google_analytics_bq

Get Google Analytics 360 BigQuery data
ga_adwords_list

List AdWords
ga_custom_vars

Get Custom Dimensions or Metrics
ga_custom_vars_list

List Custom Dimensions or Metrics
ga_users_list

List Users
ga_view

Get single View (Profile)
is.error

Is this a try error?
listNameToDFCol

Add name of list entry of dataframe to dataframe column
order_type

Make an OrderType object
parse_ga_account_summary

New parse GA account summary
reexports

Objects exported from other packages
rmNullObs

Recursively step down into list, removing all such objects
segmentObj_ga4

Segment objects
segmentSequenceStep

segmentSequenceStep
segment_vector_simple

Make a simple segment vector
ga_webproperty_list

List web properties
getColNameOfClass

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

Make pivot column names
make_cohort_group

Create a cohort group
myMessage

Custom message log level
sequenceSegment

sequenceSegment
meta

Google Analytics API metadata
metric_ga4

Make a metric object
segmentDimensionFilter

segmentDimensionFilter
segmentFilterClause

segmentFilterClause
segmentMetricFilter

segmentMetricFilter
google_analytics_4

Get Google Analytics v4 data (single request)
google_analytics_4_parse

ga v4 data parsing
makeOrFilters

Make orFiltersForSegment
segmentDefinition

Segment Definition
makePivotData

Make pivot data rows
multi_select

multi_select [Shiny Module]
multi_selectUI

multi_select UI [Shiny Module]
pivot_ga4

Make a pivot object
pivot_ga4_parse

pivot data parsing
segment_ga4

Make a segment object for use
segment_vector_sequence

Make sequenceSegment
unitToList

Allow unit lists
orFiltersForSegment

orFiltersForSegment
segmentBuilder

Create a GAv4 Segment Builder
segmentBuilderUI

Create a GAv4 Segment Builder
segment_define

Make a segment definition
segment_element

Make a segment element
simpleSegment

Simple Segment
timestamp_to_r

Timestamp to R date
met_filter

Make a metric filter object
segmentChain

segmentChain
segmentChainUI

segmentChain UI
segmentElementUI

A GAv4 segment element row
segmentFilter

Segment Filter