code snippets from the statsravingmad.com/blog post that guides you through querying the GA API to get speed data to a local R data frame. the implementation is based on the rga package.
This is the repo with the code snippets that supply the "R + Google Analytics = FUN" post regarding getting speed metrics and clickstream data off of the GA API to R.
|rga_blog_speed_analytics.R||discrepancy between average and median page load times|
|rga_graph_speed_analytics.R||Some more graphs with smooothing...|
|rga_regression_speed_analytics.R||Check a regression fit|