/**
* The GWO (Google Website Optimizer) module provides utilities to work with Google Website Optimizer.
*
* @module gwo
* @title Google Website Optimizer
* @namespace jMUI
* @requires util, ga
*/
/**
* The GWO (Google Website Optimizer) module provides utilities to work with Google Website Optimizer.
*
* @class gwo
* @namespace jMUI
* @static
*/
jMUI.ready = false;
jMUI.gwo = jMUI.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
*/
jMUI.gwo.track_variation_as_event = jMUI.gwo.track_variation_as_event || function(pTrackerObject, pExperimentName, pVariationName, pNonInteraction) {
if(typeof(pNonInteraction) == "undefined") pNonInteraction = true;
jMUI.ga.track_event(pTrackerObject, pExperimentName, pVariationName, undefined, undefined, pNonInteraction);
};
jMUI.ready = true;