External Interface, Internet Explorer and Time Wasted
By Sal Uryasev
April 15, 2010
Find more about:
Dear Googlers,
I leave this message for you in the case that you encounter a similar obstacle to your productivity. Internet Explorers 6, 7 and 8 do not like uppercase letters (or hyphens) in the object ID when embedding a swf into the page if you then plan on using the code with ExternalInterface. They do not like it with SWFObject or with the simple old fashioned object tag. The solution was elusive, but there is some help on the ghettocooler.net Treasure Trove.
The following code will work in Firefox and Safari, but will mysteriously have a problem in Internet Explorer:
<script language="javascript">
function submitLemon() {
var swf = document.getElementById("myContent");
swf.iCanHasParameter('lemon');
}
swfobject.embedSWF("movie.swf", "myContent", "800",
"100%", "9.0.124", null, {}, {bgcolor: '#ffffff'});
</script>
It will however work if you replace the upper case letter with its lowercase equivalent:
<script language="javascript">
function submitLemon() {
var swf = document.getElementById("mycontent");
swf.iCanHasParameter('lemon');
}
swfobject.embedSWF("movie.swf", "mycontent", "800",
"100%", "9.0.124", null, {}, {bgcolor: '#ffffff'});
</script>
Depth and Discovery: Powering Visualizations with the Google Analytics API
By Chris Gemignani
November 17, 2009
Find more about:
visualizations
juicekit
googleanalytics
api
At Juice, we work with web analytics APIs large and small, from Google, comScore and Omniture. The Google Analytics API is our favorite. It powers the world's best, most widely deployed analytics site. And it powers Juice products like Concentrate (innovative search analytics) and Vasco de Gapi (a tool for exploring the Google Analytics API).
We were approached by the Google Analytics API team to find ways to explore new ways of looking at data with the API, and we were excited by the possibilities. We've been working on our own visualization framework, JuiceKit, that integrates the power of the Flare Visualization Library with Adobe Flex.
The result is Analytics Visualizations, two visualizations powered by the Google Analytics API that are free to use. You just need a Google account with access to Google Analytics data to explore your own data.
Referrer Flow
Curious about what sites are linking to you and what content is benefitting the most? Referrer Flow answers those question and shows how results change over time. Here is a brief video introduction:
Referrer Flow is a stream of daily treemaps showing pageviews and bounce rates for various groupings of your website's pages. You can group by combinations of page title, referrer and url. Clicking on the treemap will filter all the data by the page, referrer or url that you clicked on. Click again to clear your filter.
Keyword Tree
A list of top keywords isn't enough to really understand how people are searching and finding your site. Keyword Tree visually displays the most frequently used search keywords and how they are used together. Here's a video overview:
You'll see a frequently used search term at the center and the words and phrases that are most often used in combination with that word. Pick a different starting word by typing into the box in the upper right or selecting from the top word across the bottom of the screen. The words are sized by their frequency of use and colored by bounce rate (or % new visitors or average time on site). Roll over a word to see details about that combination of connected words.
Depth and Discovery
In designing these visualizations we focused on the question: how can we let users uncover the unexpected? That means designing targeted visualizations focused on limited well-defined issues. The Referrer Flow monomaniacally focuses on a single question "What pages are people viewing on your site and where are they coming from?" The Keyword Tree is laser-focused on word ordering and what that means for keyword performance.
The Google Analytics reporting tool is a great general-purpose reporting solution. It gives the advanced users everything they need to answer specific questions. However, its generality means it has limited ability to focus on two issues; depth and discovery.
The Google Analytics API is Google's solution to this problem. It's an opportunity both for businesses like ours that can create new ways of analyzing data, and for large sites that can use the API for integration, custom analytics, and more.
Thanks to Nick Mihailovski at Google for his gracious support, help and encouragement and Avinash Kaushik for inspiring this idea.
8 comments | Show all comments only the last 5 are shown
Tim said:
Great examples of innovative use of the GA API guys, really impressive, thanks for posting.
One issue I have with the keyword tree, however, is that with a large volume of long-tail keywords, it is quite easy to get the report to extend way beyond the confines of the initial view - zooming out renders the keywords completely unreadable.
Thus I am stuck with the 'middle ground' keywords, whereas what I really want to look at is the gold at the top and bottom, which contains the optimisation opportunities.
A simple scrolling interface might solve this issue?
Thanks,
Tim.
Chris Gemignani said:
Thanks Tim. We've heard that feedback loud and clear. One thing you can do--that I regrettably didn't include in the video--is click on a word with children to collapse the tree. Just try clicking on words in the keyword tree to see what I mean. In the meantime, we'll work on making the tool pannable.
Tim said:
Thanks Chris - yes, I'd seen (and liked) that functionality, however if you're trying to analyse a very common kw for your site (such as 'Review' - we are a reviews website), then there are just a lot of single words used before this.
Also, clicking words along the bottom sometimes makes the whole display disappear off the right-hand side of the screen! :)
Great stuff though, love the general look and feel, really prompts some 'fun' investigation.
Cheers,
Tim.
DSLR said:
I'm new with GA and co. but your tool is really useful, at a glance you can read a lot of things...To improve readability of both views (referrer flow in particular) you can add a "loupe", a magnifier on screen movable by mouse to expand details of the chart. Thanks again from Italy!
Affan Laghari said:
Hello,
Excellent tool though it doesn't need my praise! It would be very helpful though if you can add an option to select start/end dates and some conversion metric. That can help find valuable patterns over longer periods.
Btw, I found you people from Avinash's blog and have been roaming around on your other tools namely Vasco de Gapi, Concentrate Me and JuiceKit. Rare to find such intelligent tools. Please keep up the good work.
yulia said:
Hi guys, found your site through Avinash's blog. I love the keyword tree tool. Been playing with it all day...
Question -- is there a way to print the trees? Also, is there a way to scroll? Those would be nice functionalities... Sorry if they are already there and I'm just too slow to find them :)
Thanks for the great (and really useful) tools!
Jean said:
Hello,
Is Juicekit still actively developped ? In the git repo the last commit date is August 30, 2009.
Does juicekit work with flex 4 and Flash Builder 4 beta ?
Hope this fantastic tool will continue to improve.
Sal Uryasev said:
Hey Jean,
Juicekit is under very active development, as we actively use it internally for all our work. If you investigate the unstable branch, you will notice a number of new features and improvements. There is also more work on an internal branch that should get merged in. As far as I know, we do not have a stable release ETA, but I know that we want to do one.
Add a comment
Enhanced Google Analytics: Firefox Plugin
By Sal Uryasev
April 13, 2009
Find more about:
search,
google
analytics
There is new life in the tool that shows change in Google Analytics. A year after releasing our Greasemonkey script, we are pleased to release an updated version of the Enhanced Google Analytics script as a free Firefox Plugin. For those already using the older Greasemonkey script, you can skip ahead to the What's new? and How do I get this plugin? sections of the page. For the rest, you may be wondering: Why does my Google Analytics need change?
Change, and why it is important
When I first started working at Juice Analytics, my boss Zach showed me a part of his daily Google Analytics routine. He would open up the Referring Sites page, glance at all of our 942 referrers. Using his superior intellect and capacity for remembering random urls, Zach would discover interesting deviations in the traffic from sites linking to our blog.
Our top referrers looked more or less similar day to day. Even once you get past the more recognizable top sites such as Twitter and Google, the various somethingblog.com pages, without context, often look a lot like somethingelseblog.com. To top it off, most of the information is not even specifically interesting. Our chartchooser.juiceanalytics.com domain sends us consistent regular referrals, but so what? Day to day, I don't even really care about Google or Twitter unless something changes. With change, I know whether someone has posted something new about me, sending valuable traffic. A good read on the topic is Avinash's rant about "actionable analytics".
Our Firefox plugin is designed to allow analysts to get more action out of what changed in the Referring Sites and Keyword Reports. Here are a couple examples of the plugin in action from our Google Analytics account:

What's new?
Our focus for this release has been to improve functionality, to reduce the barrier to entry for new users, and to allow automatic updates for the plugin. The new version of the script works nearly instantaneously, and the installation involves only two clicks (in contrast to the 7 clicks of the Greasemonkey version). As a Firefox plugin, updates are now automatic and require no reinstall. Keyword sensitivity has been raised to 50% for consistency. As a slight bonus, the design and layout of the form and buttons is now sleeker and the table stands out in a pretty Google blue.
Greasemonkey itself is no longer required for the plugin, but you may want to keep it around for any of the other cool scripts available from the community. If you ever find yourself wishing that something about the web looked different, acted different or had different functionality, there may be a Greasemonkey script to ease your pain.
How do I get this plugin?
First, you need Firefox 2.0+.
If you are a user of the equivalent older Greasemonkey version of this script, you may want to go ahead and uninstall it. Go to Tools=>Greasemonkey=>Manage User Scripts..., select Google Analytics Downloader, and uncheck the Enabled box.
If you never had the script installed, or once you removed it, simply click here to go the mozilla addon site, select the checkbox and click the button. Once installed, navigate to Google Analytics, and go to either the Referring Sites or Keyword pages, and click the blue button.
Happy analyzing!
45 comments | Show all comments only the last 5 are shown
Andrew said:
You claim that it is for Firefox 2.0+. Do you plan on supporting 3.5 anytime soon?
Sal Uryasev said:
Hey Andrew,
I just test the add-on against latest 3.5 Firefox, and there were no conflicts, so I enabled add-on installation for the latest beta versions. I think the addons.mozilla site takes up to 24 hours or so to propagate changes, so check back then. Thanks for pointing this out.
-Sal Uryasev
Bjoern said:
Quick question: The most current version I see is 0.54 - and that was released on March, 19. Is this just the blog post following up on that release or am I missing a newer version somewhere?
Best, Bjoern
Bjoern said:
Oh, and: The plugin doesn't work correctly if G.A. is run in another language than English, e. g. German - I get empty tables on that occasion.
Ophir said:
Hi,
There's a bug - it takes the 1st account in your account access list and pulls data on that one only, regardless of the account you selected to view.
Ben said:
Hi,
I'm getting the same bug as Ophir. The plugin is only displaying data from the first profile of my first account regardless of the account I'm viewing.
Matt said:
Yep, same bug here too. Uses first account no matter what.
Brandon said:
I just installed "Enhanced Google Analytics: Firefox Plugin" I'm a visual learner and I don't see the tool bar, icon..etc. How do I use the Enhanced Google Analytics: Firefox Plugin to get key words and see the analytics/states
Thank you,
Zach said:
The "Who sent me unusual traffic?" button is displayed in the top bar of the Referring Sites and Keyword Reports, next to the Email button.
Sal Uryasev said:
Thanks for all the comments regarding the first account bug!
I finally managed to overcome the yoke of many other projects, and submit a fix.
The fix won't roll out automatically until the mozilla people finally approve the addon, but the 0.55 version can be installed for existing users this link:
https://addons.mozilla.org/en-US/firefox/addons/versions/11120
Hideki said:
Thanks for such a useful plugins.
3 "Who sent me unusual traffic?" buttons are displayed in Google Analytics. I had installed your plugins before. Is this a cause?
I uninstalled the plugin and then I installed the plugin again but still 3 buttons are seen.
Is there any way to solve this?
I would appreciate if you might help me.
Thanks,
kenan said:
I have 3 buttons on the top too. The first button works the others don't. Still the function of the script seems ok. So prolly it's just a cosmetic bug.
Indurango said:
Hello,
I installed "Enhanced Google Analytics: Firefox Plugin"
And it works fine. Thanks.
BUT, is there a way to change the analyse going back to 30 days instead of 3 days with the new firefox plugin ?
Regards,
Indurango
jamed said:
Hey thanks for the great write up, I wasn't familiar with the new GA plugin. I installed and was wondering if there was any other way of going back further in the past other than 3 days??
Jamedy
http://www.academyX.com
Sal Uryasev said:
Hey Indurango and Jamed,
The current version does not have that option, but I plan to add it into the next incarnation of the extension. The only way to get at a different number is to go back to the older Greasemonkey version mentioned at the top of this post. The Greasemonkey version has an option for changing the 3 days to a different number.
-Sal
Tobias said:
Nice plugin. If it could also change the Analytics report to display the complete referrer path right away instead of having to click on the domain it would rock. :)
Edwin said:
How can I return results for non-paid keywords only? When I try to select them, this add-on still shows the cpc keywords in the results as well.
Sunaina said:
Hi,
I just added the plugin and I see the "Who sent me unusual traffic button" on the said pages. But I don't understand where to spot the information the plugin is supposed to provide. I dont see anything as shown in the screenshots above and my data doesn't look very different. Please advise.
Bernardo Contopoulos said:
Hi Sal.
Thank you for the plugin. I was wondering though why it shows three exact same buttons on the interface of my analytics. However, only one works (clickable).
Tim said:
Hi,
Great idea for a plugin, this will be really useful, thanks very much for making it available.
It seems to work properly for me, but I have a question on how the calculation is made - could you let me know exactly what is meant by '50% higher/lower traffic over the last 7 days'?
I have looked at some of the keywords in the list it brings up and have compared their visits for the past 7 days with the 7 days prior and found the change to be less than 50%. Am I misunderstanding the calculation?
Many thanks,
Tim.
John said:
Love the plugin. Is there a way to get the data for the date range in analytics rather than 3 or 7 days depending on the report?
Thanks,
John.
James said:
I click the button, the page blinks (button says 'loading') but then the data disappears and its back to the same page again.
Is something supposed to stay on the screen? I'm using the latest version of Firefox...soooooo..
Dave said:
tried the plugin, did not work.
Sandra said:
Unfortunately the plugin is not working for me. After I click the button it just displays a 'Loading' sign, but doesn't load.
Ben said:
Is there a version that's compatible with FF 3.5.2?
Brent said:
Hi,
I'm on FF 3.5.2 and the plugin doesn't seem to be working. Anyone else having issues, or am I having isolated problems?
Richard said:
work for me people, ff 3.5.2!
just logon Analytics and click on button "who send me unusual traffic?" and poof! have fun
Brent said:
hmmm yeah, definitely not working for me on FF 3.5.2 after a few separate installs/uninstalls. It must have a conflict with one of my previously installed addons.
Brent said:
oh jeez... i'm a n00b. for everyone else out there, who like me, thought the button would look the same/be in the same place, it is actually at the top of the page now - right in between the "email" and "add to dashboard" buttons - it's not in the same place it used to be! So, I was incorrect that this wasn't working in FF 3.5.2 - it is I that is not functioning correctly :P
Mel said:
Doesn't work for me. Didn't work for me before when it required Greasemonkey either. FF 3.5.2 Cookies are enabled.
angela said:
Lovely plug-in. Well, when it works. It installed fine on my 5-year-old XP laptop. But on my 64-bit Vista, it ACTED like it was installing fine but I never see the "who sent me unusual traffic" button.
I'm using FF 3.5.3. Any known issues? Should I play around with removing other plug-ins?
Debbie said:
Isn't working for me either. I have Firefox 3.0.14. I have the button but it doesn't seem to do anything.
Dan said:
Doesn't seem to work for me either. Are there known conflict with FF 3.5.3 or maybe even compatibility issues with Better GA plugin?
Debbie said:
Yes, definitely a compatibility issue with Better GA plugin. I had the same problem and just disabled the Better GA plugin and now it works fine.
Phil said:
I'm a bit confused....It says "Referring sites with 50% higher traffic over the past 3 days." What is the baseline for the calculation? 50% higher than when? Does it look at the average amount of traffic referred going back forever? And then look at the current time frame selected in GA and look at the difference?
e.g. If google usually sends my site 1,000 visits a day but sent my site 1,500 visits on Tuesday 11/17 (yesterday). Is that the 50% increase?
What if I want to analyze traffic from a month ago?
Mark said:
Not compatible with FF 3.5
Lee said:
sooo why the heck doesn't GA do this out of the box??
wa said:
please update the plugin for ffox 3.6
mariusz said:
please update to the newest firefox - this plugin is simply brilliant
AJ Baer said:
Another request to update for ffox 3.6. This looks like a great plug-in.
Burak Tansug said:
Hi,
This is a great plug-in, but I could not find the updated version for Firefox 3.6.
Maksym said:
This is unavailable for Firefox 3.6.2. Update it please
Nikos Kapsomenakis said:
I would also like to ask you to update this great add on for newer versions of Firefox
ChrisM said:
Please add for 3.6.2. Can't wait to use.
Tarvinder Gill said:
I had firefox 3.6.2, then downgraded to an older version of firefox to get the plug-in to work.
Add a comment
US Economic Census Treemap
By Zach Gemignani
March 20, 2009
Find more about:
treemap,
visualization
Now that I’ve got treemaps on the brain, I keep noticing how many things could be better understood using this visualization technique. A few examples:

We thought it would be a nice demonstration to use data from the 1997 and 2002 US Economic Census (unfortunately 2007 isn't out yet) to see what kind of stories bubble forth. The demonstration was built using a component from JuiceKit™, our recently open sourced Software Development Kit (SDK) for building Information Experience™ applications. The SDK can be used by web designers and developers to build graphically rich and interactive information displays. JuiceKit currently integrates with Adobe Flex to create components that are easy to implement and aesthetically pleasing.
Check out the treemap here.
Here are a few of the macro-trends that I found:
- The rise of CostCo, Amazon, and Home Depot: This time period saw strong growth in warehouse clubs and superstores, online retailers (“electronic shopping”), and home centers.
- From manufacturing to services economy: Most of the growth was in service sectors (financial services, healthcare, professional services) while manufacturing was shrinking.
- Productivity gains, even in adversity: For struggling sectors, the employee declines almost always outpaced the sales declines — squeezing more sales per employee.
- Demographic shifts: Homes and services for the elderly were among the strongest areas of growth in the category of “healthcare and social assistance.”
And there were lots of little insights as well:
- No wonder hospital TV shows are so popular: Hospitals are the largest single employer as a business-type.
- Starbucks and Krispy Kreme steal the unhealthy food dollar: Cookies and frozen yogurt retail saw a rapid decline while coffee and donut shops flourished.
- Goodbye stand-alone pump: Gas stations with convenience stores overtook the just-plain gas station.
- It can’t last, can it?: Mortgage broker payroll up 177%.
Once you understand how to read treemaps, they are great for exploring data like this: hierarchical with both quantity and quality-type measures. In a true testament to their power, my wife admitted this visualization was “kinda interesting.”
1 comment
Travis said:
A small question about the presentation, or maybe the data: regardless of the metric chosen (establishments, sales, employees or payroll), the data points are shown in dollars. I would have thought establishments and employees were just numbers of each. Or has the census monetized them in some way?
Thanks. (And your wife is right: this is kinda interesting.)
Add a comment
Announcing: JuiceKit™ SDK Open Source
By Ken Hilburn
February 21, 2009
Find more about:
juicekit
As our followers know, for the past few years Juice has been creating software applications that solve customers' real information visualization problems in purposeful, understandable, and beautiful ways. In doing this, we have found ourselves reusing quite a few components over and over again - which has made our jobs a lot easier. It occurred to us that others might like to benefit from using these components to achieve great results too.
We're proud to announce the open source release of Juice Analytics' JuiceKit SDK.
The JuiceKit is a toolkit built on Adobe's Flex SDK to make it easier for web designers and software developers to build visually compelling Information Experiences™. It contains a wide variety of development components from individual data renderers such as a single "small multiple", to a large visualization component such as a treemap or US Map, to fine grained "helpers" that provide handy capabilities such as copying data to the computer's clipboard. These components can be used independently, within other applications, or assembled together to create full applications.
What can I do with it? (Show me the money)
Because we've been using the JuiceKit for quite a while, we have a number of customer proven applications based on the SDK that we thought you'd be interested in seeing.
Here is a screenshot of an application that we built to help our client see trends in their internet search and traffic activity. We used the JuiceKit™ to create the small multiples data visualization component of this application.

We've also frequently used JuiceKit to create dashboard prototypes. If you haven't seen our recent application of our treemap component to the incomprehensible Federal Stimulus Plan, here is a nice example (click to explore):
And here is a very quick one we did for an IVR monitoring application where we assembled multiple different components together into one view:

Finally, we've used JuiceKit many times to build full enterprise applications such as this sales pipeline tracking dashboard:

How do I get it?
Now it's time for you to have a go. Here's how you do it:
- Go to the JuiceKit SDK web page at juicekit.org and catch up on the current status of the project
- Check out the JuiceKit discussion group on Google Groups
- Download the JuiceKit library from github
- Contribute back to the JuiceKit community to make the JuiceKit even better
While Juice continues to focus on designing and providing software solutions (as opposed to toolkits) for our clients, we believe offering the JuiceKit as open source will benefit the information visualization community we try to serve. In the future we will continue to extend the JuiceKit with other components and technologies.
Good luck, and make sure you share how you're using the SDK so we can continue to drive it in the right direction not only for us, but for you as well.
8 comments | Show all comments only the last 5 are shown
Madan said:
Sweet! I don't understand it yet, but I love it already.
Sam Wholley said:
Great work, guys - this is fantastic!
Abhishek Tiwari said:
Hi there, nice work, I am curious how the Flare toolkit is different from the Juice analytics toolkit
James McWhorter said:
This looks interesting. I'm going to try it out!
lawh said:
inspirational. I will not sleep tonight. Can i give you a hug?
Jon Buffington said:
Abhishek,
Our scope for JuiceKit is larger than Flare's. Flare is an ActionScript library focused on programmatic visualizations. JuiceKit is a collection (framework) of code, libraries, tools, and best practices for producing information-powered web applications.
One difference is ease of composition. Currently, we wrap Flare to render treemaps in a styleable Flex component. The higher-level JuiceKit TreeMapControl is easier to drag-n-drop in Flex Builder's design mode in contrast to creating a Flare visualization using ActionScript.
Another difference is that JuiceKit will soon provide client-side tools and server-side services. For example, the client-side tools will help generate appropriate style sheets and the server-side services will assist in data preparation.
Anonymous said:
Hi,
How did you implement the popups it's it an inbuit function of the TreeMap or do you have to add it, can you post the code BTW> ?
Thanks
Imaginonic said:
Wow. This is sooo inspiring. And yeah, not to forget to mention the lack of support for flare too!
Can I buy you some beer, please?
Add a comment
Earlier writing








0 comments | Add a comment
said: