I was interested in tracking the versions of QuickTime my users have installed. As suggested in an earlier question, I have set up a custom variable and built a report around it. Here is my code for the check:
function qt_check(){
var p = navigator.plugins;
var name, ver = 0;
for(i = 0; i < p.length; i++){
name = p[i].name;
if(name.indexOf("QuickTime Plug-in") !== -1){ ver = p[i].version; }
}
return ver;
}
pageTracker._setCustomVar(1, "QuickTime Version", qt_check(), 1);
As you can see, I set up the qt_check()
function so that it would return a value of zero if the user does not have any version of QuickTime installed. My idea was that in addition to getting a readout on the various versions of QuickTime, I would be able to see how many people don't have it at all by looking for version "0".
But now that I have a few days of data, I find that although there have been 933 visits during that time, nobody registered as having QuickTime version 0.
Should I be passing some other value to Google Analytics? Is the 0 causing it to discard the variable?