Among the things I do at VMware is manage web sites. So Google Analytics is super important to me. Since I work in the Wavefront team, I thought I'd try building something which would pull GA data at specific times. So I built this PHP.
I generally use it in a crontab script. This is what I do to pull the sessions, hits and bounce rate in PHP.
#!/bin/bash php /home/broth/code/ga/WFGAnalytics.v1.php -l -7 php /home/broth/code/ga/WFGAnalytics.v1.php -l -7 -mga:hits php /home/broth/code/ga/WFGAnalytics.v1.php -l -7 -mga:bounceRate