HomeGuidesAPI Reference
Submit Documentation FeedbackJoin Developer CommunityLog In

Changed functions / properties

This topic describes the functions that will need to be updated in Optimizely when updating from Optimizely Classic to Optimizely (fka Optimizely X).

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

  • 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 you're using a function in this list, please look at the function-specific section below to get more information.


Did this page help you?