Changed functions / properties

All of these functions require your attention when you are migrating from Optimizely Classic to Optimizely Web Experimentation:

  • 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']);

If yo are using a function in this list, please look at the function-specific section below to get more information.