Send data from R to the Google Analytics 4 Measurement Protocol v2 (original) (raw)
measurementProtocol 0.1.0
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
Not yet on CRAN. From GitHub:
remotes::install_github("MarkEdmondson1234/measurementProtocol")
Usage
See the documentation on the measurementProtocol
website: https://code.markedmondson.me/measurementProtocol/
You need a GA4 account to send the hits to.
Links
- Browse source code at
https://github.com/MarkEdmondson1234/measurementProtocol/ - Report a bug at
https://github.com/MarkEdmondson1234/measurementProtocol