Slashdot Mirror


Google Analytics API Goes Public

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."

52 comments

  1. Shame by neoform · · Score: 1

    It's a shame they don't open source the code that drives the analytics.. That'd be sweet.

    --
    MABASPLOOM!
    1. Re:Shame by vux984 · · Score: 3, 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?

    2. Re:Shame by Anonymous Coward · · 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

    3. Re:Shame by Frankie70 · · Score: 4, 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.

    4. Re:Shame by eareye · · 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.

    5. Re:Shame by vux984 · · Score: 1

      No, that's still available: http://www.google.com/urchin/index.html

      Cool. That's good to know. Thanks for correcting me.

    6. Re:Shame by sherriw · · Score: 1

      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.

    7. Re:Shame by sherriw · · Score: 1

      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.

    8. Re:Shame by RoFLKOPTr · · 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.

    9. Re:Shame by sherriw · · Score: 1

      Good to know. Thanks for the update.

    10. Re:Shame by Verdatum · · Score: 1

      My first thought upon reading this comment: "Hey that's great! It must have been one of the Google Summer of Code projects!" I suppose I need sleep :)

    11. Re:Shame by Anonymous Coward · · Score: 0

      You switched because they renamed it to 'piwik'? Can't blame you. Means penis in Danish.

    12. Re:Shame by RyanPMcBride · · Score: 1

      I don't believe it's open source, but Shaun Inman's "Mint" (www.haveamint.com) is user-hosted. And quite pretty to look at, as well.

  2. A method for offloading processor useage by Crudely_Indecent · · Score: 4, 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.

    --


    "Lame" - Galaxar
    1. Re:A method for offloading processor useage by soniCron88 · · Score: 2, Informative

      Google's interface for Analytics data visualization is done with Flash, so their servers aren't rendering anything right now, anyway.

    2. Re:A method for offloading processor useage by Crudely_Indecent · · Score: 0

      They're rendering plenty of HTML.

      --


      "Lame" - Galaxar
    3. Re:A method for offloading processor useage by derGoldstein · · 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 power-users, which will want to suck as much data and throw it on as much monitor real-estate as it can.

      --
      Entomologically speaking, the spider is not a bug, it's a feature.
    4. Re:A method for offloading processor useage by Thadd.Isolas · · Score: 1

      Your browser is rendering the HTML, not google.

    5. Re:A method for offloading processor useage by derGoldstein · · 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.

      --
      Entomologically speaking, the spider is not a bug, it's a feature.
    6. Re:A method for offloading processor useage by Crudely_Indecent · · Score: 1

      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.

      --


      "Lame" - Galaxar
    7. Re:A method for offloading processor useage by derGoldstein · · 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 cache.

      --
      Entomologically speaking, the spider is not a bug, it's a feature.
    8. Re:A method for offloading processor useage by sootman · · Score: 1

      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/. :-)

      --
      Dear Slashdot: next time you want to mess with the site, add a rich-text editor for comments.
  3. Google Analytics? by Anonymous Coward · · Score: 4, Insightful

    Is that the thing that makes a lot of web pages take forever to load?

    1. Re:Google Analytics? by Crudely_Indecent · · Score: 5, Funny

      No way, you're thinking of another app, Google Maps.

      --


      "Lame" - Galaxar
    2. Re:Google Analytics? by Keyper7 · · Score: 1

      Was. At least for nowadays it is now the thing that is blocked by NoScript on a lot of web pages.

    3. Re:Google Analytics? by derGoldstein · · Score: 1

      You can solve that, at least if you're the one hosting the page: dojox.analytics.Urchin

      --
      Entomologically speaking, the spider is not a bug, it's a feature.
    4. Re:Google Analytics? by Keyper7 · · Score: 1

      At least for nowadays it is now

      Yeah, doesn't make sense, I know. Clicked on the submit button instead of the edit one.

    5. Re:Google Analytics? by Anonymous Coward · · Score: 0

      That's why I've put it into my hosts file redirecting it to 0.0.0.0. Not because of its perceived privacy invasion but because many of the hotspots I use have really slow DNS resolution. Every lookup not performed saves two seconds.

    6. Re:Google Analytics? by Lord+Ender · · Score: 2, 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.

      --
      A slashdotter who didn't build his own computer is like a Jedi who didn't build his own lightsaber.
    7. Re:Google Analytics? by Anonymous Coward · · Score: 0

      Totally make it senseto me. :-)

    8. Re:Google Analytics? by POWRSURG · · 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 to tell developers to add to their pages, but the improved user experience makes it worth the extra few bytes. All you need to do is create a script element with the src attribute pointing to the URL for the via JavaScript, append the DOM node to the head, and then create a timer that checks to see if the GA code has finished transferring (which you'll know by testing to see if _gat is undefined) before you run initialize your tracking code, then kill the timer.

    9. Re:Google Analytics? by protactin · · Score: 1

      Or they could probably just use the "defer" attribute on the script tag.

    10. Re:Google Analytics? by POWRSURG · · Score: 1
      1. Defer, though being a part of the HTML 4.01 spec, is only supported by IE. And even if other browsers supported it they could not use it because they need to know that the content had been loaded before they execute the tracking code.
      2. The vast majority of developers just copy and paste the code as given. This code is an internal script tag that derives the protocol that is currently being used to then refer to the HTTP or HTTPS file using document.write, and then a second internal script tag that starts the tracking using your unique id while inside of a try/catch block.
    11. Re:Google Analytics? by protactin · · Score: 1

      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 guess inconsistent browser is also why they disabled gzip support? Though I would have thought it would be trivial to Vary by User-Agent.

  4. If only they'd release the collection code... by oneiros27 · · Score: 2, Insightful

    Due to US government privacy policies, we're not allowed to 'share information with third parties' which makes all hosted analytics solutions forbidden.

    --
    Build it, and they will come^Hplain.
    1. Re:If only they'd release the collection code... by Anonymous Coward · · Score: 0

      ...but that's the whole point of analytics.

      You get your site statistics, and google gets your site statistics.

    2. Re:If only they'd release the collection code... by Alex+Zepeda · · Score: 3, Informative
      --
      The revolution will be mocked
    3. Re:If only they'd release the collection code... by lavalamp · · Score: 2, Informative

      More info about Urchin here, it definitely still exists. v6.6 is currently in beta.

      http://www.urchintools.com/

    4. Re:If only they'd release the collection code... by Anonymous Coward · · Score: 0

      This policy should happen across every business too. Thank GOD my government didn't do this stupid thing. OTOH, is there anything that prevents all government agencies from sharing cyber infrastructure work and software development? Beyond inter-agency politics?

      I think it is just crazy to give google your raw data for free. Not only that, but many of your customers don't like google having access to their browsing at your site. Data on 1 site isn't really that big of an issue for me, but since GoogleAnalytics is used by 50+% of the web hosts, now google can track your browsing almost everywhere. Not good, IMHO.

    5. Re:If only they'd release the collection code... by WebmasterNeal · · Score: 1

      From whitehouse.gov img alt="DCSIMG" id="DCSIMG" width="1" height="1" src="http://statse.webtrendslive.com/dcs0l9nq800000ctek411lue6_2c8b/njs.gif?dcsuri=/nojavascript&WT.js=No&DCS.dcscfg=1&WT.tv=8.6.0"

      --
      "During My Service In The United States Congress, I Took The Initiative In Creating The Internet." -Al Gore
    6. Re:If only they'd release the collection code... by Anonymous Coward · · Score: 0

      With the software version you are limited to log analysis - by the way poor analytics compared to commercial solutions.

      see http://www.google.com/urchin/faq.html#urchin_analytics_differences

  5. By the same token by Itsik · · Score: 1

    Would the reduced bandwidth lead to lower revenue??

  6. the complete API reference by viralMeme · · Score: 1

    "If only they'd release the collection code..."

    Yea, how is anyone supposed to figure out how to use it with only the complete API reference

    1. Re:the complete API reference by vux984 · · Score: 1

      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.

    2. Re:the complete API reference by DragonWriter · · Score: 2, Interesting

      That is beside the point. He wants to HOST the analytics himself so google doesn't have access to all the raw analytics data.

      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.

  7. Beta? by kevin98055 · · Score: 2, Funny

    And by "Beta", do we mean "RTM"?

  8. Get Clicky by wohlford · · Score: 1

    I'm a hugh fan of Clicky. The big difference with Google Analytics and Clicky is real-time stats and very good customer service. And, yes, they have an API

    --
    Jason Wohlford
  9. Whew! by Povno · · Score: 1

    You had me for a second I thought this was about Gmail...
    But it is still scheduled to be in beta for at least the rest of eternity.
    We can all relax now.

    --
    sudo apt-get lost
  10. privacy concerns? by Anonymous Coward · · Score: 0

    $ cat /etc/hosts
    # disable google analytics snoopware
    127.0.0.1 google-analytics.com

  11. Obligatory joke by Anonymous Coward · · Score: 0

    > Google Analytics API Goes Public

    IPO, IPO, IPO!

    ;-)