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 the version > 0.3.0 of 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

35,685

Version

0.4.0

License

MIT + file LICENSE

Maintainer

Mark Edmondson

Last Published

April 1st, 2017

Functions in googleAnalyticsR (0.4.0)

allowed_metric_dim

Create named list of allowed GA metrics/dimensions
cohort

Cohort object
anti_sample

Get a GA request with anti-sampling
aggregateGAData

Aggregate a Google Analytics dataframe over inputted columns
authDropdown

authDropdown [Shiny Module]
authDropdownUI

authDropdown UI [Shiny Module]
cohort_dimension_check

Check the request has cohort dimensions
cohortGroup

Cohort Group object
cat0

if argument is NULL, no line output
checkPrefix

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

Make a date object
fetch_google_analytics_4_slow

Fetch GAv4 requests one at a time
dim_filter

Make a dimension filter object
dimension_ga4

Make a dimension object
expect_null_or_s3_class

Expect NULL or class (s3)
fetch_google_analytics_4

Fetch multiple GAv4 requests
expect_null_or_type

Expect NULL or type
cohort_metric_check

Check the request has cohort metrics
dynamicSegment

Dynamic Segment v4 object
error.message

Get the error message
ga_auth

Authenticate with Google Analytics OAuth2
ga_adwords_list

List AdWords
ga_custom_upload_list

List Custom Data Source Uploads
ga_adwords

Get AdWords Link meta data
google_analytics_account_list

Get account summary including the ViewId
ga_custom_upload_file

Upload data to Google Analytics
filter_clause_ga4

Make a dimension or metric filter clause object
ga_custom_upload

Custom Data Source Upload Status
ga_accounts

Get account list
ga_custom_datasource

List Custom Data Sources
ga_filter_view

Get specific filter for view (profile)
ga_experiment

Experiments Meta data
ga_filter_view_list

List filters for view (profile)
ga_experiment_list

List Experiments
ga_goal

Get goal
ga_goal_list

List goals
ga_filter_list

List filters for account
ga_custom_vars

Get Custom Dimensions or Metrics
ga_custom_vars_list

List Custom Dimensions or Metrics
ga_filter

Get specific filter for account
ga_users_list

List Users
ga_remarketing_list

List remarketing audiences
ga_view

Get single View (Profile)
ga_unsampled

Get Unsampled Report Meta Data
ga_view_list

List View (Profile)
ga_webproperty

Get web property
ga_segment_list

Get segments user has access to
ga_remarketing_estimate

Estimate number of users added to the segment yesterday
ga_remarketing_get

Get a remarketing audience
ga_unsampled_list

List Unsampled Reports
google_analytics_bq

Get Google Analytics 360 BigQuery data
google_analytics_4

Get Google Analytics v4 data (single request)
google_analytics_4_parse_batch

ga v4 parse batching
google_analytics_4_parse

ga v4 data parsing
listNameToDFCol

Add name of list entry of dataframe to dataframe colum
order_type

Make an OrderType object
segmentElementUI

A GAv4 segment element row
segmentDimensionFilter

segmentDimensionFilter
makeOrFilters

Make orFiltersForSegment
orFiltersForSegment

orFiltersForSegment
segment_element

Make a segment element
segment_ga4

Make a segment object for use
is.NullOb

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

Segment objects
pivot_ga4_parse

pivot data parsing
reexports

Objects exported from other packages
is.error

Is this a try error?
met_filter

Make a metric filter object
meta

Google Analytics API metadata
segmentMetricFilter

segmentMetricFilter
segmentBuilderUI

Create a GAv4 Segment Builder
segmentChain

segmentChain
segment_vector_simple

Make a simple segment vector
segment_vector_sequence

Make sequenceSegment
sequenceSegment

sequenceSegment
simpleSegment

Simple Segment
google_analytics_bq_asynch

Asynch fetch
make_ga_4_req

Make a Google Analytics v4 API fetch
make_cohort_group

Create a cohort group
google_analytics_meta

Get current dimensions and metrics available in GA API.
multi_selectUI

multi_select UI [Shiny Module]
myMessage

Custom message log level
segment_define

Make a segment definition
segmentDefinition

Segment Definition
segmentSequenceStep

segmentSequenceStep
segmentChainUI

segmentChain UI
timestamp_to_r

Timestamp to R date
unitToList

Allow unit lists
ga_webproperty_list

List web properties
getColNameOfClass

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

Make pivot data rows
pivot_ga4

Make a pivot object
segmentBuilder

Create a GAv4 Segment Builder
googleAnalyticsR

Library for getting Google Analytics data into R
google_analytics

Get Google Analytics v3 data
parse_ga_account_summary

New parse GA account summary
rmNullObs

Recursively step down into list, removing all such objects
makePivotNames

Make pivot column names
hourly_anti_sample

hourly get request with anti-sampling
idempotency

Idempotency
metric_ga4

Make a metric object
multi_select

multi_select [Shiny Module]
segmentFilter

Segment Filter
segmentFilterClause

segmentFilterClause