You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
notdior edited this page Oct 2, 2012
·
10 revisions
WB_analytics is a PHP library which will help you fetch analytics reports from your Google account. Google announced an API some months ago but nothing happened ever since so we created this class which will be updated if the API will be published.
WB_analytics was build for one of our modules for Webber. You can view more informations here here.
This data source uses web scraping. This means that Google could easily break it by making changes to the infrastructure of Google Analytics.
It is based on Felix's class which does the same think but for CakePHP.
echo $analytics->report ( $report );// output is XML
In the above example we're fetching the dashboard. There are other report types such as Visits, UniqueVisitors, Resolutions, content.TopContent, Keywords, ReferringSources, TrafficSources, Speeds and many others.