News Feed
Sections




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

ThinkingPHP:
Google Analytics PHP API (CakePHP Model)
June 19, 2006 @ 17:17:28

From the ThinkingPHP blog today, there's a new post that looks at combining to great things - the CakePHP project and Google Analytics - into a tool using Google's API to grab a sites stats.

About 2 weeks ago, I recieved an e-mail in which one of my readers pointed out the existance of a couple wordpress plugins, that offer Google Analytics statistics. One of them also seems to be pretty popular and so far Google hasn't stopped any of the creators from providing them.

For this reason I decided to release my Api as well, and let you decide about the ways to use it. I'm sure you'll find some interestings things to do with it. Since I already started my new Web Model package over at cakeforge I just added the Google Analytics Model to it.

Not only does he provide all the code you'll need, but he also includes an online demo so you can test out the functionality before putting in the work. You'll need the CakePHP framework (obviosuly) to get it all working. The code to use the actual API is pretty simple and behaves "like a simulated browser" to grab the data needed. Reports are cached locally (default is 2 hours) so as not to have to make API calls constantly.

0 comments voice your opinion now!
cakephp google analytics api model web package cakephp google analytics api model web package


blog comments powered by Disqus

Similar Posts

Till Klampaeckel's Blog: PHAR and FreeBSD

Builder.com: Match users to their geo-location with PHP and PEAR Net:Geo

/Dev/Hell Podcast: Episode 33: Pol Pot-level Sucks

Michael Girouard's Blog: Pro Tip: Installing PHP 5.2.9 on CentOS

ThinkingPHP: Google Analytics PHP API (CakePHP Model)


Community Events

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


language series yii2 api interview composer example project php7 framework laravel list community testing opinion application introduction part2 symfony podcast

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