The availability of features may depend on your plan type. Contact your Customer Success Manager if you have any questions.

Dev GuideAPI Reference
Dev GuideAPI ReferenceUser GuideLegal TermsGitHubDev CommunityOptimizely AcademySubmit a ticketLog In
Dev Guide

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