ganalytics (version 0.10.4)

ganalytics: ganalytics

Description

A Google Analytics and Google Tag Manager API client for R

Arguments

Details

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.

Features:

* Auto-pagination to return up to 1,000,000 rows per query.

* Ability to query more than 10 metrics at once. (TBC)

* Minimise the effect of sampling by splitting the date range of queries using the SplitDateRange function.

* When sampling has occurred, the output data.frame includes the sample and total sizes as attributes.

To report bugs, please run the following command: utils::bug.report(package = "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")

References

Google Analytics core reporting API dimensions and metrics reference: https://developers.google.com/analytics/devguides/reporting/core/dimsmets

Google Analytics Table Filter expressions: https://developers.google.com/analytics/devguides/reporting/core/v3/reference#filters

Google Analytics Custom Segmentation expressions: https://developers.google.com/analytics/devguides/reporting/core/v3/segments-feature-reference

Google Analytics Real-time Reporting API dimensions and metrics: https://developers.google.com/analytics/devguides/reporting/realtime/dimsmets/

Google Analytics Multi-Channel Funnel conversions Reporting API dimensions and metrics: https://developers.google.com/analytics/devguides/reporting/mcf/dimsmets/

Google Analytics Management API collections and resources https://developers.google.com/analytics/devguides/config/mgmt/v3/mgmtReference/

Google Tag Manager API collection and resources https://developers.google.com/tag-manager/api/v1/reference/