var experimentId = 23333431896;
if (window['optimizely'].variationMap.hasOwnProperty(experimentId)) {
var test = window['optimizely'].data.experiments[experimentId].name;
var treatment = window['optimizely'].data.state.variationNamesMap[experimentId];
if (test && treatment) {
window['dataLayer'].push({
'event': 'experiment running',
'splitTestName': test,
'splitTestVariation': treatment
});
}
}
As an aside - we would like to build out-of-the-box integration with Optimizely - so it becomes a switch you set when you initialize the Javascript tracker, that would then automatically grab the relevant data points out of the Optimizely data object. In order to do this, however, we need to understand what data points Optimizely users want to record from that data object - if there's a consensus, then building out this support should be reasonably straightforward. So my question is what data points would you like? If the differnet snowplow users on this chain agree, we can proceed to build out that functionality.
All the best,
Yali
--
You received this message because you are subscribed to the Google Groups "Snowplow" group.
To unsubscribe from this group and stop receiving emails from it, send an email to snowplow-use...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Snowplow" group.
To unsubscribe from this group and stop receiving emails from it, send an email to snowplow-use...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.