Google Analytics API Goes Public 52
stoolpigeon writes "Google has announced the now public beta for the Google Analytics API (described here). The API lets developers create client applications that can pull analytics data, to mash it up with other data or to present it in new ways. The API has been available through a private beta program for about a year, and some applications are already out there: examples include Polaris on Adobe Air and Analytics for Android."
Shame (Score:2)
It's a shame they don't open source the code that drives the analytics.. That'd be sweet.
Re:Shame (Score:4, Interesting)
It's a shame they don't open source the code that drives the analytics.. That'd be sweet.
But it wouldn't give them access to all the traffic on your site (and everyone elses that uses their analytics.) I was pretty pissed when they bought urchin (the company that made what is now 'google analytics') because they the first thing google did was prevent you from hosting the analytics yourself.
On that note is there a good FOSS analytics package, preferably one that works well cross platform?
Re:Shame (Score:5, Informative)
I was pretty pissed when they bought urchin (the company that made what is now 'google analytics') because they the first thing google did was prevent you from hosting the analytics yourself.
No, that's still available: http://www.google.com/urchin/index.html
Re: (Score:2)
No, that's still available: http://www.google.com/urchin/index.html [google.com]
Cool. That's good to know. Thanks for correcting me.
Re: (Score:1)
Re:Shame (Score:4, Informative)
On that note is there a good FOSS analytics package, preferably one that works well cross platform?
One open source alternative to Google Analytics is Piwik [piwik.org].
Re: (Score:2)
I used the piwik software before it was renamed to piwik. At that time it was quite clunky doing all kinds of background calculations and it's totals didn't add up. Wasn't impressed. I wonder if it's been improved since then.
Re: (Score:2)
I wonder if it's been improved since then.
Piwik has gotten some much-needed usability improvements in the past couple months. It is still very obviously beta software, but everything is working much better. I've been using Piwik since last October or so after trying Google Analytics, Statcounter, and Open Web Analytics. They also have Wordpress and MediaWiki plugins so you don't have to go around editing templates. I'm really impressed with how much they've improved lately.
Re: (Score:2)
Good to know. Thanks for the update.
Re: (Score:2)
Re: (Score:2)
I've been looking for a good FOSS php analytics suite and what's out there is so crappy I've toyed with making one myself. Time is my barrier though.
Re:Shame (Score:5, Funny)
Google paid around 30 Million Dollars for buying Urchin Software whose product it originally was.
Maybe if you could buy that division from Google & open source it. That'd be sweet.
A method for offloading processor useage (Score:5, Insightful)
The clients now perform the rendering and Google need only provide the raw data. It's brilliant and a great move. As applications are written, refined and adopted, Google will benefit from the reduced load of the rendering servers. Their bandwidth usage would probably go down as well.
Re: (Score:3, Informative)
Re: (Score:1)
They're rendering plenty of HTML.
Re: (Score:1)
Re: (Score:1)
I think he meant that google needs to take the raw data, parse it, and place it into markup structures. At least, this particular aspect will be removed from the process.
Re: (Score:2)
Their bandwidth usage would probably go down as well.
Actually, I'm willing to bet it'll go up. They're giving people the ability to create their own interfaces to GA, ones that likely pull more data per-instance in order to allow the app to visualize things like comparative graphs/charts, as well as trends.
These new apps will only be pulling raw data, this is true, but why would you want to use/create an app that allows you to play around with *less* information than their site already allows. It's more likely that one of the bigger uses for this will be for
Re: (Score:2)
In the current configuration, Google must render pages, so those power users are pulling (this is a guesstimate) 70% HTML, CSS and Javascript. Well built applications would retrieve data at appropriate intervals. Refreshing the page on Google Analytics doesn't result in new information displayed until their system posts the next batch of incoming data.
At least for the current method of use (to analyze and visualize your traffic data), their resource requirements should go down.
Re: (Score:1)
Most, if not all, of the .css and .js files are cached. Moreover, some of the page structures are cached through JS DOM building (it just needs the new data, the structure is created on-the-fly).
You could hammer the servers and keep requesting new versions of the css and js files, but barring that, only the part of the page that changes should need refreshing.
Obviously, that's an ideal situation, but even in real-world use many of the static files won't require reloading unless you keep clearing the browser
Re: (Score:2)
The clients now perform the rendering and Google need only provide the raw data. It's brilliant and a great move.
Until the users discover /var/log/httpd/. :-)
Google Analytics? (Score:4, Insightful)
Is that the thing that makes a lot of web pages take forever to load?
Re:Google Analytics? (Score:5, Funny)
No way, you're thinking of another app, Google Maps.
Re: (Score:2)
Re: (Score:2)
At least for nowadays it is now
Yeah, doesn't make sense, I know. Clicked on the submit button instead of the edit one.
Re: (Score:1)
Re: (Score:3, Informative)
You are correct. Install firebug, and watch the net chart it generates. The page will load, then you will wait another second or so before google-analytics loads and you can actually use your browser.
Re: (Score:1)
Honestly, I believe Google is trying to piss people off with Google Analytics. First the code that they present that every developer just copies and pastes because Google tells them to loads the code in a blocking manner, and then a little while back they have turned off gzip compression so they file took even longer to transfer. Heck, I'd forgive them for the second if they would at least update the code they tell developers to copy and paste to load GA in a non-blocking manner. Yeah, it's a bit more code
Re: (Score:2)
Or they could probably just use the "defer" attribute on the script tag.
Re: (Score:1)
Re: (Score:2)
Ah, didn't realise only IE supported defer!
I never quite understood the HTTP/S detection, as I would have thought it'd be simpler to do "//google-analytics.com/..." (i.e. no explicit protocol). Though again I don't know what standard, if any, defines that behaviour. But if it is/was standard, then you could have a single script block. But of course, as you say, developers who call _gat from elsewhere (such as myself) would have to know when the content had loaded. So, er yeah.. forget all of that! :)
I g
If only they'd release the collection code... (Score:3, Insightful)
Due to US government privacy policies, we're not allowed to 'share information with third parties' which makes all hosted analytics solutions forbidden.
the complete API reference (Score:2)
Yea, how is anyone supposed to figure out how to use it with only the complete API reference [blogspot.com]
Re: (Score:2)
Yea, how is anyone supposed to figure out how to use it with only the complete API reference
That is beside the point. He wants to HOST the analytics himself so google doesn't have access to all the raw analytics data.
Re: (Score:3, Interesting)
Its not completely beside the point; while clearly opening the API doesn't help that as directly as opening the engine would, with the API available (and apps using it already) and incentive is created for independent implementations of the API, as well. So this is probably, in the long term, good for people who want to self-host analytics without building their own from scratch.
Re:If only they'd release the collection code... (Score:4, Informative)
Re: (Score:2, Informative)
More info about Urchin here, it definitely still exists. v6.6 is currently in beta.
http://www.urchintools.com/ [urchintools.com]
Re: (Score:1)
By the same token (Score:2)
Would the reduced bandwidth lead to lower revenue??
Beta? (Score:2, Funny)
Get Clicky (Score:1)
Re: (Score:1)