Learn R Programming

googleAnalyticsR

Install

From CRAN:

install.packages("googleAnalyticsR")

Or the latest development version on GitHub:

remotes::install_github("8-bit-sheep/googleAnalyticsR")

Getting started

Examples and tutorials available at https://8-bit-sheep.com/googleAnalyticsR.

Copy Link

Version

Install

install.packages('googleAnalyticsR')

Monthly Downloads

23,229

Version

1.2.0

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Last Published

August 16th, 2024

Functions in googleAnalyticsR (1.2.0)

ga_clientid_activity_unnest

Unnest user activity columns
ga_adwords_delete_linkid

Deletes a Google Analytics webProperty-Google Ads link
ga_adwords_add_linkid

Creates a Google Analytics webProperty-Google Ads link
ga_clientid_activity

User Activity Request
ga_custom_upload_delete

Deletes custom upload files for a given ids vector
ga_custom_upload

Custom Data Source Upload Status
ga_adwords_list

List AdWords
ga_custom_datasource

List Custom Data Sources
ga_accounts

List account metadata
ga_aggregate

Aggregate a Google Analytics dataframe over inputted columns
ga_adwords

Get AdWords Link meta data
ga_custom_vars

Get Custom Dimensions or Metrics
ga_custom_upload_list

List Custom Data Source Uploads
ga_data_filter

Filter DSL for GA4 filters
ga_data_aggregations

Extract metric aggregations from a ga_data result
ga_clientid_deletion

Create or update a user deletion request
ga_auth_setup

Setup wizard for authentication options
ga_custom_vars_patch

Modify a custom dimension
ga_custom_vars_create

Create a custom dimension
ga_goal_add

Create a new goal.
ga_filter_add

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

Setup caching of API calls
ga_custom_vars_list

List Custom Dimensions or Metrics
ga_data

Google Analytics Data for GA4 (App+Web)
ga_clientid_hash

Get hashed version of client id (also known as hashClientId, hashedClientId, or BigQuery's fullVisitorId)
ga_filter

Get specific filter for account
ga_experiment

Experiments Meta data
ga_custom_upload_file

Upload data to Google Analytics
ga_goal

Get goal
ga_filter_apply_to_view

Apply an existing filter to view.
ga_filter_view

Get specific filter for view (profile)
ga_experiment_list

List Experiments
ga_data_order

Order DSL for GA4 OrderBy
ga_filter_delete

Delete a filter from account or remove from view.
ga_model_edit

Edit a created ga_model
ga_filter_list

List filters for account
ga_model_example

Load an example model
ga_mp_cid

Generate a random client_id
ga_filter_view_list

List filters for view (profile)
ga_goal_update

Updates an existing goal.
ga_model_shiny

Create a Shiny app from a ga_model file
ga_model_write

Write the ga_model functions to a file
ga_users_add

Create or update user access to Google Analytics
ga_meta

Get current dimensions and metrics available in GA API.
ga_model_shiny_load

Load one model into a Shiny template
ga_model_shiny_template

Get a Shiny template file
ga_remarketing_estimate

Estimate number of users added to the segment yesterday
ga_users_delete

Delete all user access for an email
ga_mp_event

Create a Measurement Protocol Event
ga_goal_list

List goals
ga_model_refresh

Refresh a model
ga_unsampled_download

Download Unsampled Report from Google Drive. You must be authenticated with the same account that you setup the unsampled report. This means service account authentication is not supported.
ga_mp_event_item

Create an Measurement Protocol Item Property for an Event
ga_model_save

Save a created model
ga_filter_update

Updates an existing filter.
ga_mp_send

Make a Measurement Protocol v2 request
ga_model

Use a model
ga_trackme

Opt in or out of googleAnalyticsR usage tracking
ga_view_list

List View (Profile)
metricDimensionSelectUI

metricDimensionSelectUI - GA4 Shiny Module
ga_webproperty

Get a web property
ga_filter_update_filter_link

Update an existing profile filter link. Patch semantics supported
ga_model_load

Load a created model
ga_remarketing_list

List remarketing audiences
met_fil_ga4-class

met_fil_ga4 class.
make_cohort_group

Create a cohort group
ga_segment_list

Get segments user has access to
ga_model_make

Modelling function factory for Google Analytics data
ga_unsampled_list

List Unsampled Reports
simpleSegment_ga4-class

simpleSegment_ga4 class.
google_analytics

Get Google Analytics v4 data
google_analytics_3

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

Make a metric filter object
multi_select

multi_select Shiny Module
ga_unsampled

Get Unsampled Report Meta Data
sequenceSegment_ga4-class

sequenceSegment_ga4 class.
segmentBuilder

Create a GAv4 Segment Builder
met_ga4-class

met_ga4 class.
segmentDef_ga4-class

segmentDef_ga4 class.
ga_view

Get single View (Profile)
ga_users_update

Update a user access in Google Analytics
segmentFilter_ga4-class

segmentFilter_ga4 class.
segmentFilterClause_ga4-class

segmentFilterClause_ga4 class.
ga_remarketing_build

Create a remarketing audience for creation
segment_vector_simple

Make a simple segment vector
segmentSequenceStep_ga4-class

segmentSequenceStep_ga4 class.
segment_vector_sequence

Make sequenceSegment
ga_webproperty_list

List web properties
googleAnalyticsR

Library for getting Google Analytics data into R
ga_remarketing_get

Get a remarketing audience
segmentBuilderUI

Create a GAv4 Segment Builder
order_type

Make an OrderType object
meta

Google Analytics API metadata
meta4

Google Analytics API metadata
order_type_ga4-class

order_type_ga4 class.
ga_remarketing_create

Create a new remarketing audience
segment_element

Make a segment element
segment_define

Make a segment definition
parse_ga_account_summary

New parse GA account summary
multi_selectUI

multi_select UI Shiny Module
pivot_ga4

Make a pivot object
ga_users_list

List Users
ga_users_delete_linkid

Delete users access from account, webproperty or view level
segment_ga4-class

segment_ga4 class.
orFiltersForSegment_ga4-class

orFiltersForSegment_ga4 class.
segment_ga4

Make a segment object for use
.filter_clauses_ga4-class

.filter_clauses_ga4 class.
accountPickerUI

accountPicker UI Shiny Module - pick GA4 accounts/webProperties in Shiny
ga_account_list

Account summary for all accounts available to your user
authDropdownUI

authDropdown UI Shiny Module
authDropdown

authDropdown Shiny Module
dim_filter

Make a dimension filter object
filter_clause_ga4

Make a dimension or metric filter clause object
ga_allowed_metric_dim

Create named list of allowed GA metrics/dimensions
ga_auth

Authenticate with Google Analytics OAuth2
dim_fil_ga4-class

dim_fil_ga4 class.
dim_ga4-class

dim_ga4 class.
dynamicSegment_ga4-class

dynamicSegment_ga4 class.