ganalytics-package: ganalytics.

Description Details Package options Author(s) References See Also


A Google Analytics and Google Tag Manager API client for R


Classes and methods for interactive use of the Google Analytics core reporting, real-time reporting, multi-channel funnel reporting, metadata, configuration management and Google Tag Manager APIs.

To use this package with these APIs, it is necessary to provide OAuth credentials for a Google APIs project with the necessary APIs enabled.


To report bugs, please run the following command: = "ganalytics")

When posting a bug, please try rerun any API queries wrapped within a call to httr::with_verbose and include the output in the bug report (taking care not to include any private data). For example: httr::with_verbose(GetGaData(my_query))

For a step-by-step guide with examples, run this command: browseVignettes(package = "ganalytics")

Important functions to be familiar with in this package are:


This function is used to define a Google Analytics query object that can be interactively manipulated and executed to aid exploratory querying and analysis of Google Analytics data.


This function will execute the supplied query object.


This is used to define expressions involving Google Analytics dimensions and/or metrics used for use in segments and filters.


This function takes one or more expressions to construct a sequence-based segment.

Package options



Maintainer: Johann de Boer


Google Analytics core reporting API dimensions and metrics reference:

Google Analytics Table Filter expressions:

Google Analytics Custom Segmentation expressions:

Google Analytics Real-time Reporting API dimensions and metrics:

Google Analytics Multi-Channel Funnel conversions Reporting API dimensions and metrics:

Google Analytics Management API collections and resources

Google Tag Manager API collection and resources

See Also

Useful links:

ganalytics documentation built on May 2, 2019, 8:34 a.m.