Improving your average: using R to beef up Average Time on Page
![Comparing the calculated median and the Google Analytics mean average](https://dataingovernment.blog.gov.uk/wp-content/uploads/sites/46/2016/05/Figure-3-620-620x400.jpg)
Google Analytics’s Average Time on Page can be a hugely important metric but also a very misleading one. As a mean average, it can be influenced by a skewed distribution, a problem that you can’t diagnose in the web interface. So I found a way to break down the data into individual visit lengths.