Display Top Content from Google Analytics with Status Board

Apr 19, 2013

I bit the bullet and bought Status Board last night and it's gorgeous but I needed to find more ways to display my data.

I was rummaging around for data to pull in and came across Carl Franzon's PHP script for Google Analytics to display a week's worth of visits and pageviews as a line graph. The script is based off of the g-api library so there is an immense amount of data you can pull from it.

Status Board - Google Analytics Top Content

Displaying Top Content

I forked Carl's GitHub repo and hacked together another file called toppages.php that displays the top URLs with their corresponding number of pageviews from the past seven days. Please follow the instructions in the readme file to add it to your Status Board.

Warning: I suck at PHP

Please feel free to add/change anything to the repo as I don't have any knowledge of PHP beyond the basics. I'm certain that what I hacked together can be improved.

Thanks Carl and thanks Panic!

Download from GitHub