track_variation_as_event
static
void
track_variation_as_event
(
pTrackerObject
,
pExperimentName
,
pVariationName
,
pNonInteraction
)
Fucntion that can be included in GWO variations to track them in Google Analytics (GA) as events.
- Parameters:
-
pTrackerObject <string|object>
the name of the tracker object variable, or the actual tracker object. -
pExperimentName <string>
the name of the experiment. Will be the event's Category. -
pVariationName <string>
the varitaion name. Will be the event's Action. -
pNonInteraction <bool>
when false, event has an impact on bounce rate. When true, the event will not be used in bounce rate calculations. Default: "true"
- Returns:
void