Update: I just posted (December 4th, 2008) a version that will allow you to differentiate between 1.6.0* the family versus 1.6.0 the version.
I'm experimenting with a new script for tracking Java versions. To use the new code simply add the following two lines after your Google Analytics script:
<script src="http://java.com/js/deployJava.js" type="text/javascript"></script>
<script src="http://jre-analytics.googlecode.com/svn/trunk/jre-analytics.js" type="text/javascript"></script>
I encourage you to sign up to the mailing list to follow future discussions on this topic:
http://code.google.com/p/jre-analytics/Benefits of new script- Easier, auto-updating installation. Linking to my external script means that you get the benefit of future updates without any effort on your part.
- Does not conflict with other scripts. The old code uses _setVar() which records at most one variable across an entire user session. Different scripts compete for exclusive access to this variable. The new code uses _trackEvent() which allows multiple values to be recorded in separate namespaces, so different scripts do not interfere with each other's data collection.
- Records multiple JRE versions per user. The old script was supposed to do this but the limitations of _setVar() meant it only recorded the latest JRE version.
DetailsAbout 48 hours after you install the script you should see new data under
Content ->
Event Tracking. Please note that the
Event Tracking menu will not show up until you collect enough data.
Please let me know the statistics reported for your site. Post this at
http://forums.java.net/jive/thread.jspa?messageID=317425The new script will record two kinds of events:
- detected: indicates whether Java was detected on the user's machine.
- version: indicates the specific Java version detected on the user's machine.
This should give you a much better overview of what's really going on. I look forward to your feedback!
WarningAccording to
http://code.google.com/apis/analytics/docs/eventTrackerGuide.html both the old and new script will cause your page's "bounce rate" to incorrectly get reported as zero. This is a limitation of how
_setVar() and
_trackEvent() are implemented and there doesn't seem to be anything I can do about it. Sorry :(