Send Data from R to the Measurement Protocol

Send server-side tracking data from R. The Measurement Protocol version 2 < https://developers.google.com/analytics/devguides/collection/protocol/ga4> allows sending HTTP tracking events from R code.


measurementProtocol - an R library for sending server-side data to Google Analytics 4

CRAN CloudBuild codecov

The Measurement Protocol v2 is for sending data to Google Analytics 4.

This library enables the ability to use the API from R.

It also includes functions to use the measurement protocol to track events such as R library loads for package usage analytics.

Complement the package with googleAnalyticsR to read the data you send.

Install

Install from CRAN

install.packages("measurementProtocol")

Dev version from GitHub:

remotes::install_github("MarkEdmondson1234/measurementProtocol")

Usage

See the documentation on the measurementProtocol website: https://code.markedmondson.me/measurementProtocol/

You need a Google Analytics 4 account to send the hits to.

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("measurementProtocol")

0.1.1 by Mark Edmondson, 4 years ago


https://code.markedmondson.me/measurementProtocol/


Report a bug at https://github.com/MarkEdmondson1234/measurementProtocol


Browse source code at https://github.com/cran/measurementProtocol


Authors: Mark Edmondson [aut, cre] , Sunholo Ltd [cph]


Documentation:   PDF Manual  


MIT + file LICENSE license


Imports assertthat, cli, httr, jsonlite, rappdirs, stats, utils

Suggests rmarkdown, knitr, testthat


Imported by googleAnalyticsR.


See at CRAN