News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Ask About PHP Blog:
Google Analytics API class for PHP
May 29, 2009 @ 09:33:05

On the Ask About PHP blog today there's a new tutorial (and a new class) helping you to connect your applications with the Google Analytics backend.

I've been thinking about how I can make use of this API to enhance the sites I'm working on. But before kicking off ideas, I had to find out how to access and use the API. I finally came up with a PHP class that will do all the grunt work of calling the API, you just need to supply your report's parameter and the PHP class will return you an array of Analytics data.

The class [zip] makes connecting to the Analytics backend as easy as dropping in a username/password, defining which profile to use and the date range. The getReport() method does the hard work

0 comments voice your opinion now!
tutorial interface api analytics google


blog comments powered by Disqus

Similar Posts

DZone.com: Video: PHP 5.3.1, MongoDB and Lithium on Windows 7 / IIS 7

Zend Developer Zone: Installing PHP4 and PHP5 Concurrently on One WinXP Computer

SitePoint PHP Blog: Practical OOP: Building a Quiz App Bootstrapping

PHPBuilder.com: Reading RSS feeds in PHP: Part 2

HowTo Forge: How To Harden PHP5 With Suhosin On Fedora 7


Community Events





Don't see your event here?
Let us know!


podcast series opinion install composer configure version conference extension community laravel unittest voicesoftheelephpant language list release interview symfony introduction api

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework