/**
* The GWO (Google Website Optimizer) module provides utilities to work with Google Website Optimizer.
*
* @module gwo
* @title Google Website Optimizer
* @namespace MUI
* @requires util, ga
*/
if(typeof(MUI) != "undefined") {
if(typeof(MUI.gwo) == "undefined") {
/**
* The GWO (Google Website Optimizer) module provides utilities to work with Google Website Optimizer.
*
* @class gwo
* @namespace MUI
* @static
*/
MUI.gwo = {
/**
* Fucntion that can be included in GWO variations to track them in Google Analytics (GA) as events.
*
* @method track_variation_as_event
*
* @param {string|object} pTrackerObject the name of the tracker object variable, or the actual tracker object.
* @param {string} pExperimentName the name of the experiment. Will be the event's Category.
* @param {string} pVariationName the varitaion name. Will be the event's Action.
* @param {bool} pNonInteraction when false, event has an impact on bounce rate. When true, the event will not be used in bounce rate calculations. Default: "true"
*
* @static
*/
track_variation_as_event: function(pTrackerObject, pExperimentName, pVariationName, pNonInteraction) {
if(typeof(pNonInteraction) == "undefined") pNonInteraction = true;
MUI.ga.track_event(pTrackerObject, pExperimentName, pVariationName, undefined, undefined, pNonInteraction);
}
};
}
}