Hi Simon,

Good to hear!

 From my experience, google seems to process the data in blocks - and 
the processing can be pretty random.
You can have a bunch of pageviews come through every 2-5 hours, and 
other stats can take even longer.

Personally I have been using a cron job to run once a day (at 4am) and 
update the website graphs for the previous day's traffic.

Cheers,
Stig

Simon Holywell wrote:
> Hi Stig,
>
> Thanks for releasing this code. Saved me loads of time and from writing 
> disgusting CURL routines! 
>
> I am using it for a basic visits vs unique graph built with the flot plugin 
> for jQuery to be used on the CMS dashboard. By the way do you know how often 
> or when google update the stats? Would like to cache them to speed up the 
> response time. Was thinking an update once a day should suffice - maybe 
> around midnight to catch the full days traffic.
>
> Thanks again,
> Simon
>
>
> -original message-
> Subject: [phpug] Google Analytics PHP Interface - GAPI
> From: Stig Manning <[email protected]>
> Date: 26.05.2009 02:55
>
>
> Hi PHPUG,
>
> A while ago I mentioned that I was developing an open-source Google 
> Analytics PHP Interface, following the opening the 'Google Analytics 
> Data Export API'. Google has given us all access to all that awesome GA 
> data.
>
> The GAPI class is now out of beta, yay! and has the following features:
>
> * CURL and fopen HTTP request methods, with autodetection. Works on more 
> servers!
> * Full XML to PHP object mapping - deal with the data returned in a nice 
> object-oriented way.
> * Magic 'get' methods for all of the parameters, metrics and dimensions
> * Process account data and report data
>
> See the project at:
>
> http://code.google.com/p/gapi-google-analytics-php-interface/
>
> It would be great to get other people on board using the class in your 
> project and assisting with documentation and development.
> I am using the class in a number of projects currently (including a CMS 
> with analytics reports built in) and it is great to work with, 
> especially if you are used to Doctrine / Prototype ORMs.
>
> Cheers,
> Stig
>
>   


--~--~---------~--~----~------------~-------~--~----~
NZ PHP Users Group: http://groups.google.com/group/nzphpug
To post, send email to [email protected]
To unsubscribe, send email to
[email protected]
-~----------~----~----~----~------~----~------~--~---

Reply via email to