This is an example of a plot of the GA (google analytics) data stored in Json format. The data is plotted using d3.js. Have a look at the gallery. I do not think I have done d3js justice with my line charts.
Using data from google analytics (GA) (see other posts) a Fast Fourier Transform is performed on the time series data. The absolute value is saved for plotting using d3.js
This post briefly covers connecting to Google Anayltics with a service account (Google Api Console).
In order to connect to a Google Analytic (GA) profile, the following are needed
Sample PHP code to get the number of visitors to a site (profile ID)
Once the GA client is set-up then the following code will return hourly GA data for the given profile.
The slides for the talk describe using PHP to access Google Analytics and present it in d3.js
Sample code at: https://github.com/espeecat/brightonphpfftd3js2013/blob/master/README.md
I am going to cover