Google Analytics API on App Engine Treemap Visualization
Last Updated on Friday, 30 October 2009 02:36 Written by TheAutomator Friday, 30 October 2009 02:25
Here is a captivating way to look at your Google Analytics data in a Treemap visualization. You can visualize your own data with our live demo. (Note: IE currently not supported for visualization part.)

And, here is a video explaining how to look at the Treemap visualization and how to use it.
The goal of this example was to teach people how to use the Google Analytics API on App Engine in Java, as well as to demonstrate how to use both OAuth and AuthSub along with the App Engine's various services. The code looked great, but the output was a boring HTML table. So we used some open source tools to transform the table into a pretty tree map visualization, which is also useful in noticing interesting metrics.
All the code has been open sourced on Google Project hosting. Also, here's an article describing how this application works making it easy for developers to use this example as a starting point for new data visualizations and other Google Data projects.
For the data retrieval part, we used the App Engine Java SDK and the Google Analytics Data Export API Java Client Library to retrieve data from Google Analytics. The example code implements both unsigned AuthSub and registered OAuth authorization methods allowing developers to get up and running quickly in their dev environment and later switch to a secure authorization method in production environments. The application also uses the Model-View-Controller pattern, making it flexible and allowing developers to extend the code for new applications (e.g. adding support for other Google Data APIs).
And lastly, for the visualization part, we used the open-sourced Protovis SVG Visualization Library to create the Treemap. This JavaScript library is maintained by the Stanford Visualization Group and excels at creating brand new visualizations from a data set (in this case a boring HTML table). To handle all of the interactions, including rollover, tooltips and slider controls, we used JQuery. Here is the JavaScript source for the visualization part of the sample.
Enjoy!
New Feature Spotlight: Engagement Goals, Goal Sets and 20 Goals Per Profile
Last Updated on Wednesday, 28 October 2009 02:54 Written by TheAutomator Wednesday, 28 October 2009 12:39
Last week, we announced a bundle of new enterprise-class features in Google Analytics. Over the next few weeks, we'll do posts which go into depth on each new feature. Here is the first, which goes into detail on the expanded and improved goals in Google Analytics (related video). It's very clearly and insightfully written by our friends at WebShare, a Google Analytics Authorized Consultant, with links to related help center articles.You can probably think of more than four things you'd like your visitors to be doing when they visit your website. Until last week, Google Analytics had limited the number of configurable goals per profile to just four. Sure, you can create 50 profiles and thus track up to 200 goals, but having to switch back and forth in your reports can be a bit cumbersome. Well, here's some very welcome news: comprehensive site performance measurement just got easier. A newly released feature in Google Analytics now lets you create up to 20 conversion goals per profile, including new Engagement goals.
What is it?
Each profile now can be configured with up to four “Goal Sets”, each capable of housing five individual goals. In your Traffic Sources reports, each goal set appears as its own tab (see screenshot below) and the goals associated with the set are listed out in plain text, just as before, to show you how your visitors are accomplishing the objectives of your site. (Click any image to enlarge it.)
In the screenshot above, you can see that Goal Set 1 is comprised of five individual goals. Look in the white boxes under "Goal Set 1" and you'll see "Goal 1: Newsletter Signup", "Goal 2: Contact Us Page", "Goal 3: New User Registration", "Goal 4: Webinar Signup" and "Goal 5: Catalog Request". Goal Sets 2, 3, 4 contain various other goals, and a simple click on the tab puts the numbers you need right at your fingertips.
When viewing your Goal reports, you'll now see up to 20 individual goals in the “Select Goal:” dropdown list, so you can quickly and efficiently look at trend data, funnel visualizations and more:
Setting Up Your Goals
Goal configuration has a new look which follows the goal set organization. For each goal set, you can add up to five individual goals (the remaining number of goals in each set are conveniently noted for you). To add a new goal, just click on the “Add goal” link for the goal set you wish to add a goal to.
With all of these new goals to configure, it's a good practice to use your goal sets to group your goals strategically. For example, you might use Goal Set 1 to track a set of e-commerce related goals such as Successful Purchase, Added Item to Shopping Cart, Deleted Item from Shopping Cart, and things of that nature. For your next set, you might want to track interaction goals such as Newsletter Signup, Followed us on Twitter, Logged In, etc... The sky's the limit, but make sure to consider how you'll want to use your reports when configuring your new goals.

New Goal Types - Engagement Goals
Time on Site allows you to specify a greater than or less than value of time spent on your site as one of your goals. The following goal would fire once a visit passes five minutes in length:
As always, if you'd like a monetary value to be assigned to any of your goals and used in cost and revenue calculations, just enter the amount in the "Goal Value" field.
Goal Funnels
One more change to the goal creation page is the goal funnel creation step. The setup is collapsed by default (as it is optional), but if your URL Destination goals follow a path and you'd like to see how users are entering, following and abandoning that path, this is something that you can take advantage of. To create a funnel, just click on the “+ Yes, create a funnel for this goal” link and start entering the URL path to your goal, adding up to 10 steps.
Happy Goaling!
With this new addition to Google Analytics, opportunities to understand and then cater to your visitors abound. So the question is, how will you take advantage of this for your site?
Twitter Teams up with Google and Bing
Last Updated on Tuesday, 27 October 2009 03:45 Written by TheAutomator Tuesday, 27 October 2009 03:45
Twitter recently partnered up with both Google and Bing to allow them to search and index the full stream of tweets. Both companies are taking a different approach to how to showcase the data. Here is a look at each one.
Bing Twitter Page and Search
Bing actually created an entire page at bing.com/twitter which displays trending topics in a cloud at the top followed by a listing of the most active links below. Each link is followed by a couple of related tweets. There is some mystery as to which tweets are being selected. It does not appear to be the first tweets or the ones from people with the most followers. It also seems the links are tied to the trending topics, and are not necessarily the most popular links on twitter.

Additionally, Bing adds the ability to search the twitter stream in real-time. After searching a term (like Yankees) and you 4 selected tweets followed by some of the top linked content relating to those words. You can view the full tweetstream and either allow it to continually refresh or pause it a read a few. Be careful with some of the top trending topics, as they can start refresh faster than you (or at least I) can read them.
The Bing search adds some value with the related links, but the selection of how these links (and top two tweets) are chosen is still not fully known. Hopefully some of this will get ironed out as Microsoft continues to make progress in developing this search option.
Google Social Search
Google takes a completely different approach to the fire hose of Twitter data. While this may not be their long-term plan for the data, they are currently integrating it with a few other services in Google Labs. At the Google Labs Experimental Search, you can join the experiment, which gives you the option to use Social Search. Once you have signed up, when you search for something on Google and click Show Options you will see Social at the bottom. Selecting it gets you into the special Social results.

These results will show links from different people you are connected to and how you are connected to them. It also gives you the option to view results from a single person. Google creates these connections using your Google Profile (you created that, right?). I have Twitter as one of my links, as well as my YouTube account. Google scans these two networks to search for connections I might have, then it searches through that data.
This is much different than a full Twitter search, but in many cases it may be more useful. You are probably more interested in what the people you know and follow have to say than the rest of the Twitter universe. It also works to filter out all of the spam that currently plagues and Twitter trending topic. The links go to tweets, blogs, and other links related to the search, which adds some additional value to just searching the twitterstream.
These two new ways to search Twitter are still early in development so expect some changes and improvements in their results over time.
Learn MoreMain Menu
Site Search
Tags
Categories
- Affiliate Marketing
- Analytics
- Analytics API
- Announcements
- Apple
- Bing
- Blogging
- CMS
- Code and Configuration
- Drupal
- Email Marketing
- Google Analytics
- HOliday trends
- honest SEO
- insights
- keywords
- marketing
- Microsoft
- products
- Related Products
- Search Engine Marketing
- Search Engine Strategies
- Search Engines
- SEO
- SEO Spam
- social media
- Social Search
- Training and Events
- Twitter Topics
- Typos
- Uncategorized
- Videos
- Web Analytics
- Web Design
- Web/Tech
- Weblogs
- Yahoo



