Google Analytics for Umbraco (package update)

MARCH 13 2010

I thought it was about time to blog about the latest version of my Google Analytics package for Umbraco, here, a couple of weeks after it has been released on our.umbraco.org.

It seems I haven't blogged since august 2009, so excuse me if I'm a bit rusty.

Let me take a stroll down memory lane to CodeGarde'09 when the package was first showcased and actually won the prize for best package, which I'm clearly very proud off. I have been getting very good feedback ever since, and this has really motivated me to make the package even greater. First release included some basic reports that you would also find in Google Analytics when logging in and clicking the main sections (Dashboard, Visitors, Traffic Sources, Content and Goals), and the charts was made using the Google Chart API - so Google all the way :-) It covered a basic need to view basic statistics within Umbraco, but wasn't really all that flexible.

After CodeGarden'09 I started the initial work to rewrite the package to make it more flexible and enable the ability to create custom reports, which had been a goal of mine since day one or two. Okay, maybe not from the first couple of days, as my first goal was to create a simple statistics section in Umbraco while learning how to create a custom section, which I had never done before. Version 1 of the package was very much a learning process for me. So after having gone through the learning process of version 1 I was ready to pursue my second goal: Create a killer Google Analytics package.

To fulfill my second goal I would have to implement the following features:

  • Custom Reports
  • Flash Charts
  • Umbraco DataType

These features seemed somewhat simple at the time, but turned out to be very time consuming to make. Creating custom reports based on 47 predefined Metrics and 65 predefined Dimensions makes up for a s**t load of combinations, so I had to come up with a way to calculate the results as a single integer, an average, a percentage and time. I think I have tested something like 90% of the reports, which are available through Google Analytics by default and it seems that my model works (so far anyway - I dread multi-series reports).

Next feature was the Flash charts. Flash charts are simply more flashy then static images, so I chose to go with Fusion Charts Free for the implementation because 1.they are free and open source, 2.they are super nice and 3.there is an impressive amount of charts available to work with. So far I have only implemented the Single Line chart, 2D & 3D Pie chart and Bar chart, but hope to implement more. Luckily it will be easy to add more charts, as I have created a C# wrapper for the properties that make up the Flash object. I have kept the Google Chart API implementation for the summary charts, but also implemented as objects in my model.

The Data Type was one of the most requested features in the package forums on our.umbraco.org, so clearly I wanted to implement this as well and it is a very cool feature to have. I would love to be able to add a statistics-tab to my Document Types and see how many pageviews, visits etc. my content got.

With the main features down the only hurdle to overcome was the time factor. I originally thought I would be able to post an update in August 2009, but didn't have enough time so maybe October was more realistic, but no. I kept pushing the release because I didn't have enough time to dedicate to the project, and only worked on it from time to time during weekends. The new year came and I had got a lot of work done, and when the feb16 birthday event was announced it was great opportunity to prep a release. The implementation of the different charts was done, and ability to create custom reports was also ready. Only some small features was still needing some polish, and the Data Type. I thought to myself that I must release this package (give the people what they want) very soon, so I set a deadline for February 26. for release of the reworked package.

For the feb16 birthday event I demoed the new and hugely improved package in Copenhagen, which seemed to go okay. The crowd was really really quite, but I'm hoping it was because they were speechless :-) I announced that the package would be released on our.umbraco.org on feb 26. so the heat was on. The following 10 days I coded like a crazy to make my deadline, and I started creating teasers for the package to rise awareness and to further pressure myself.

Version 1.0.6 was released on feb.26th. and was very well received. The installer was updated a couple of days later, so current version is 1.0.7.

Current features include:

  • 32 Standard Reports
  • Custom Reports
  • Data Type (choose any report)
  • Switch between multiple profiles for accounts available through credentials (google account)
  • Flash Charts based on Fusion Chart Free (Single line-, 2D & 3D Pie- and Bar charts)
  • Static Charts for summary views (based on Google Charts API)
  • Tables for viewing things like Content by Visits, Browser types, version etc.
  • Sorting of reports (Umbraco tree)
  • Sorting of charts within a report
  • Editing of existing charts within a report
  • Delete charts from a report
  • Delete reports
  • Change icons for reports in tree

Here are links to the 10 teasers, which I created during the last 10 days of development:

Installing the Package: http://screenr.com/EHh
Accounts & Profiles: http://screenr.com/3jx
Editing Reports: http://screenr.com/q3x and http://screenr.com/Mix
Data Type: http://screenr.com/gbx and http://screenr.com/8vx
Sorting Reports: http://screenr.com/Szx
Changing Icons: http://screenr.com/4cx
Custom Reports: http://screenr.com/k4x

I hope you find this package useful! I really enjoyed making it, and thanks for all the wonderful feedback! If you have any suggestions for updates or additions, please feel free to add a request on the forums. Please also feel free to share your custom reports, as I would love to see which reports others use.

Google Analytics for Umbraco version 1.0.7

[gallery columns="5"]

Analytics Google Umbraco

Discussion

Jukka-Pekka Keisala
01
Jukka-Pekka Keisala 14 Mar, 2010 06:11 PM
Wow! Great job Morten! I really like, looking really nice with fusion charts.
Tom
02
Tom 16 Jun, 2010 04:10 PM
Nice package, see you at codegarden.
Bjarne
03
Bjarne 27 Jun, 2010 05:41 PM
I like this package :) Is it possible to develop the package, so you could check browser versions too, like if you check the statistic from googles site. It seems that the package only shows the browsers the visitors use, not the versions of the browsers. It would be nice if this was a possibility :)
Morten Christensen
04
Morten Christensen 27 Jun, 2010 08:31 PM
Hi Bjarne, It is possible, but you would have to create a report for each browser and only have the version number listed because multiple columns currently isn't supported. Simply create a custom report and add the name of the browser as a filter. Let me know if it works out, otherwise drop me a post on our.umbraco.org and I can add steps or xml to get the chart you want. - Morten
Bjarne
05
Bjarne 27 Jun, 2010 09:14 PM
Thanks.. I'm just new in Umbraco, so I was just wondering about it was a possibility, when you often want to know which version of the browsers the users make use of. Otherwise I think it is a great package to allow google analytics in Umbraco, which is very useful.
Sean
06
Sean 05 Jul, 2010 12:05 PM
I've just tried to uninstall this package however it has left the section icon and 'Statistics' top level tree item. how can do i 'complete' remove this package (will be reinstalling but for now i need to remove it). thanks.
Morten Christensen
07
Morten Christensen 05 Jul, 2010 12:41 PM
Hi Sean, Unfortunately the uninstall function isn't really implemented yet. If you go to the database and open up these three tables: [umbracoUser2app], [umbracoAppTree] and [umbracoApp] and delete the rows containing the appAlias: statistics This post contains some SQL script to remove the rows from the different tables (just make sure to change the appAlias from "stat" to "statistics"): http://our.umbraco.org/projects/website-utilities/google-analytics-for-umbraco/google-analytics-for-umbraco-%28106-or-newer%29/7478-Upgrading Hope this helps, Morten
Glargegal
08
Glargegal 15 Dec, 2011 01:56 AM
Profit like mad with the CPA networks... <i>And grab EASY commissions now with</i> <a href=http://ghigea78.dcpadestro.hop.clickbank.net><font color=blue><b>Dirty CPA!</b></font></a>

Your Comments

Used for your gravatar. Not required. Will not be public.
Posting code? Indent it by four spaces to make it look nice. Learn more about Markdown.

Preview

Powered by FunnelWeb 1.0.1.517