Skip to content

martijnvv/scrollanalytics_r

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

page-level scroll analysis

For this analysis / visualisation I use Google Analytics scroll tracking to collect data. Collecting the data and pulling it into R has been described in detail by Ryan Praskievitz on his blog: http://www.ryanpraski.com/scroll-depth-tracking-analysis-with-google-analytics-r

Usecase for this analysis

The visualisation that I built with this R script is particularly useful for individual page analysis; analysing the use of a landingpage or other important page.

screenshot of ggplot2 output

Packages used

The packages I have used are:

  • googleAnalyticsR (pulling data from Google Analytics)
  • webshot (creating a .png based on a screenshot of the page)
  • ggplot2 (building the visualisation)
  • png (to read the .png)
  • lubridate (format the date of the Google Analytics query)
  • grid (to add the background image to ggplot2)

Feedback is welcome!

I welcome feedback on this setup. My R knowledge is still fairly limited, so this code can probably be made faster/ efficient with the right skills. Also would love to learn about additional features/ applications you would use to update this visualisation.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages