When using
var _gaq = _gaq || [];
within a script tag what would be needed to support this in a closure to add analytics async requests.
i.e.
experiment = (function(){
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-XXXXX-X']);
_gaq.push(['_trackPageview']);
var nobody_knows_this_var_is_here = "cant see me";
});
if _gaq is not already defined will it be able find this array to perform the items pushed on to it once it is ready. since the _gaq var is not public I'm guessing it won't work. Any workarounds?