Posts

Showing posts from July, 2018

Setting up googleAnalyticsR on Google Cloud Platform's Compute Engine

When it comes to using Google Analytics data in R, you have quite a number of packages to work with. One such package that has seen recent, frequent updates is googleAnalyticsR , written by Mark Edmondson. googleAnalyticsR works great when you're running it in your own script. But when you need to use it on a remote server, for example, to generate scheduled reports, you may find yourself jumping through hoops and hurdles just to set this up, particularly with authorization. Here's a guide based on my experience of setting up googleAnalyticsR on a Google Cloud Platform (GCP) Compute Engine instance. It covers all the required setup steps, from software installation to authorization to running a quick test. How to setup googleAnalyticsR on a Google Cloud Platform Compute Engine instance Setup a Compute Engine instance The bare minimum specifications for your Compute Engine instance should be: n1-standard-1, i.e. 1 vCPU with 3.75GB memory 10GB boot disk running the ...