Welcome to the website for googleAnalyticsR, an R library for working with Google Analytics data.
Follow development on the project's Github development site. or browse the development documentation of googleAnalyticsR which is subject to change.
The Slack group googleAuthRverse
includes a #googleAnalyticsR
channel. For news, chat and support join via this request form.
Collaboration is welcomed and encouraged, if you are interested get in touch.
- First GA4 Data API R package for fetching data from GA4 properties
- Send server-side Measurement Protocol v2 hits to GA4 via the measurementProtocol R package
- First Google Analytics Reporting v4 API library for Universal Analytics to R
- Automatic anti-sampling techniques to return more detailed data
- v4 features include: metric expressions, pivots, date comparisons, batching.
- Auto-paging, auto-authentication options
- API metadata of possible metrics and dimensions
- GA360 support for features such as resource quotas.
- Multi-user login to enable Google Analytics powered Shiny Apps
- Integration with BigQuery Google Analytics Premium/360 exports.
- Single authentication flow can be used with other
googleAuthR
apps likesearchConsoleR
- Automatic batching, multi-account fetching, multi-channel funnnels
- Support for
googleAuthR
batch. For big data calls this could be 10x quicker than normal GA fetching - Meta data in attributes of returned dataframe including date ranges, totals, min and max
- The
.gamr
file format for sharing modelling analysis of Google Analytics data. - Automatic caching of API requests
- Management API features such as unsampled report downloads and view filter setup
These are all great libraries that also work with Google Analytics data in R, that I have taken inspiration from.
Thanks also to the many contributors to the package that have been creating features, finding and fixing bugs and giving feedback. They have all helped create the package as it is today. In particular Jas Sohi (@j450h1) and Zoran Selinger (@zselinger) for their work on new management API features.
If you have used the package and published online then get in touch and I'll list it here so others can benefit.
- Dartistics.com is a website dedicated to using R with digital analytics, and has a page on getting up and running with googleAnalyticsR
- Video tutorials for googleAnalyticsR are on YouTube.
- Michal Brys has an online book on using Google Analytics with R that uses googleAnalyticsR
- Ryan Prazki has created a video tutorial on how to get up and running quickly: Google Analytics R Video Tutorial
- Ryan also has a tutorial on using googleAnalyticsR to do scroll tracking analysis in a heatmap
- Jules has a nice post on using a Markov model to create an attribution model with googleAnalyticsR data
- Tim Wilson has a guide on getting up and running with R for digital analysts
- Guide to using googleAnalyticsR in Japanese and here
- Alenlytics has a guide that also includes using the RStudio Addin for authentication
- Mario Martinez has a guide on using googleAnalyticsR in Spanish
- Vincent has a tutorial on using Twitters AnomalyDetection package with googleAnalyticsR in French
- Tom Alby uses
googleAnalyticsR
to do some clustering market basket analysis in German. - Anita makes some pie and bar charts from channel data
- Creating Google Analytics non-sampled scheduled reports [Russian]
- Fredrik forecasts sales from Google Analytics and sends it to your own Slack bot [Swedish]
- Fredrik analyses time between bookings and events with lots of detail on interpreting the data.
- Becky West at Lunametrics shows how to use some of the management API functions to audit your GA configurations
- Pierre has a guide in French on how to setup googleAnalyticsR and start pulling out data.
- Nico has a guide on how to insert Google Analytics data into a map
- Dusan goes into how to setup and use googleAnalyticsR in Serbian
- Pavel talks about how to automate website analytics with R and googleAnalyticsR
- Mayo shows how to visualise geographical data from your Google Analytics data
- Habr.com show how to get data from Google Analytics into Microsoft SQL Server via googleAnalyticsR
- Ruben has a beginners guide to googleAnalyticsR
- Adam Ribaudo has some nice resources on analysis with
googleAnalyticsR
including posts on market basket analysis (MBA) with Google Analytics data and viewing Google Analytics segment overlap - Chloe writes on how to use googleAnalyticsR to detect spam traffic in your Google Analytics data
- Carl from RStudio writes about the process of creating custom Google Analytics dashboards with R.
- Antoine writes a nice in-depth post on analysis you can do with your blog traffic in R
- Jamarius Taylor shows how to do Market Basket Analysis with googleAnalyticsR data
- Adil Khan shows how to apply k-means clustering to Google Analytics data
- Alexey from Netpeak.net has some great Russian language resources:
There are some blog posts on using googleAnalyticsR and various other data science code for digital marketing on my blog: Mark Edmondson's Blog.
There you can also see other R packages working with digital marketing applications such as searchConsoleR
, bigQueryR
and googleMeasureR
.