GuidesAPI Reference
Submit Documentation FeedbackJoin Developer CommunityLog In

The "state" module provides functions for querying the current state of project entities (primarily for QA and integration purposes). You can use the State APIs as soon as the microsnippet loads (anytime after the script tag that invokes the Edge Decider).

let state = window.optimizelyEdge.get('state');