Changed functions / properties
This topic describes the functions that will need to be updated in Optimizely when updating from Optimizely Classic to Optimizely Web Experimentation (fka Optimizely X).
When migrating from Optimizely Classic to Optimizely Web Experimentation, each function requires updating.
optimizely.data.*
optimizely.data.state
optimizely.data.visitor
window["optimizely"].getAccountId();
window["optimizely"].getProjectId();
window["optimizely"].push(["activate"]);
window["optimizely"].push(["activate", experimentId]);
window["optimizely"].push(["customTag", tagKey, tagValue]);
window["optimizely"].push(["skipPageTracking"]);
window["optimizely"].push(['addToAudience', audienceId]);
window["optimizely"].push(['removeFromAudience', audienceId]);
window["optimizely"].push(['removeFromAllAudiences']);
window["optimizely"].push(['addToSegment', 'apiIdentifier', 'optionalSegmentValue']);
window["optimizely"].push(['removeFromSegment', 'apiIdentifier']);
window["optimizely"].push(['removeFromAllSegments']);
Updated 8 months ago