Showing posts with label Analytics. Show all posts
Showing posts with label Analytics. Show all posts

April 20, 2010

Analytics4Android update - working on XML parser

This is a progress update for the Analytics4Android Google Analytics Widget project for Android Mobile phones.

Not much seems to have happened since the end of March when I last made an update public. I have had the (mis)fortune of having too little time for this project that tangible progress has emerged. I am - however - still working on this project although I have not had much time to do so.

At the moment I am working on the XML parser that is to parse both the Analytics profile feed and data feed. This is both a work-in-progress as well as a learning-in-progress situation for me as I have not written or parsed XML files much in the past. When the work has progressed further I hope to see two jumps in both the profile feed parser and data feed parser.

So although there is no update on the version number on the Analytics4Android web page, work is still under way!

March 28, 2010

Analytics4Android update - now at version 0.15

Analytics4Android is now up to version 0.15 and we are half way to the next mile stone. It can now retrieve the Analytics Account profile feed. Next task is to parse that feed.

UI development is on hold for now. I want to implement a tabbed UI and it is currently giving me a headache. Apparently it is a bug in eclipse and/or the Android SDK/ADT.

Tomorrow will be the start of the profile feed. All the data feeds are formatted as XML Atom feeds.

Analytics4Android is an Android Application/Widget that will display (excerpts from) Google Analytics data. It is currently under active development and is in alpha state. First beta release will be version 0.50.

Queries against Google Ananlytics Data Export API with ClientLogin

Just wanted to share this little bit of info with those of you have yet to find it!

When making queries against the Google Analytics (GA) (and most likely all Google) Data Export APIs when you have authenticated using ClientLogin the authentication type sent as a header in HTTP GET.

I missed that somehow and kept getting "401 Token Invalid - Invalid AuthSub Token" when trying to retrieve the GA account profiles. My error was ofcourse sending
"Authorization: AuthSub token="
which is related to the AuthSub authentication method.

When querying for data you need to send:
"Authorization: AuthSub token="
instead.

March 04, 2010

Google Analytics Application/Widget for Android

Last Update:  March 17th, 2010 9:42 CET

I have started work on an Application/Widget that can retrieve and display data from Google Analytics, for mobile phones running on the Android platform.

This will be my first application and Widget for Android and as such it is both a learning as well as a production project as the outcome should be a usable Application/Widget.

As work is still in its very early stages and I need to research both Android development and how to use the Google Data API from Java/Android there is not much to show yet. I will put up an article on our web site, when there is more to show.

Update March 12th:
I now get an authorization token when providing my own correct google login. Failure is detected and parsed but not parsed properly and user is not informed. User info is probably going to be delayed - I'd rather try to get some data first ;-)

For progress/project status please look further down.

Update March 17th:
The past few days nothing (seems to have) happened. Partly due to other engagements, work etc. Partly because I started fiddling with the UI and that broke something, which I could not figure out. I have been writing a few lines of code which will be the start of managing Accounts and Profiles.

I have rethought the UI and the way the App/Widget will be set up, including the way it is set up in my IDE (Eclipse). I have also decided to change the name of the App/Widget, which was a working title anyway. Hopefully later today I will have put up a web page on the App/Widget with the new name. I will also change the way I update the info. So far I have just kept editing this post. From today I will make a new post with the changes only and then put the status on the web page. When the web page is ready, I will post the URL here.

Status: Version 0.10 - alpha state

Next mile stone: V. 0.20 - Account Query (request profiles)

To Do (anticipated version):

  • Authenticate user (V. 0.10 - DONE!)
  • Account Query (request profiles) (V. 0.20)
  • Report Query (V. 0.30)
  • Widget setup (V. 0.40)
  • Widget display (V. 0.50)

Progress:

March 12th, 2010
Version 0.10

  • Authentication of Google Analytics Account code
    • HttpRequest code based upon a post by Rich Stern : http://blog.richstern.com/?p=32
    • Google now authenticates my personal account and an authorization token is returned.
    • Still need to parse the HttpResponse properly
      • Determine response from Google (DONE)
      • Inform user of failure/success (showing dialog upon Authorization already)
      • Save authorization token on succes (DONE)
    • ... time to head for the second mile stone! Whoop!

March 12th, 2010
Version 0.05
  • Authentication of Google Analytics Account code
    • HttpRequest code based upon a post by Rich Stern : http://blog.richstern.com/?p=32
    • Google now authenticates my personal account and an authorization token is returned.
    • Still need to parse the HttpResponse properly
      • Determine response from Google (partly done)
      • Inform user of (possible) failure
      • Save authorization token on succes (DONE)
    • ... but I am half way to the first mile stone! Yay!
March 11th, 2010
Version 0.04
  • Authentication of Google Analytics Account code
    • based upen code from a post by Rich Stern : http://blog.richstern.com/?p=32
    • Google now authenticates my personal account and an authorization token is returned.
    • Still need to parse the HttpResponse properly
      • Determine response from Google
      • Inform user of (possible) failure
      • Save authorization token on succes
    • ... but I am almost half way to the first mile stone! Yay!
March 10th, 2010:
Version 0.03
  • code for reading UI contenst Username and Password added
  • Authentication of Google Analytics Account code started
March 4th, 2010:
Version 0.01
  • Project started.
  • UI for adding accounts started
  • No working code yet