One of the things that are currently missing from Google Analytics is Silverlight detection. Normally this type of information would appear under the browser capabilities section, the same section that lists Flash and Java versions. While I'm sure this will change eventually, it is something that can be very useful to web sites hosting Silverlight applications today.
In order to bridge this detection hole here is a simple solution that would plug this information into Google analytics.
The solution is based on 2 things:
1. Custom visitor segments - Google Analytics allows us to create user defined values that can be stored and reported upon.
// Google analytics include files
// Report Silverlight version to Google analytics
var pageTracker = _gat._getTracker("UA-xxxxx-x");
pageTracker._setVar('SLVersion ' + getSilverlightVersion() );
1. Remember to replace UA-xxxxx-x with your Google analytics code in the code example.
2. The information you report to Google analytics will appear under user defined values in the visitors section.
3. You can use Advanced Segments to integrate your user defined values into other reports.
4. There is normally a time delay in Google analytics reporting so it might take a few hours before you start to see the effects of your new code.