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

JavaScript API use cases

This topic describes use cases on why you would want to build behavioral queries when running Optimizely Personalization.

When running Optimizely Personalization, your web page can evaluate a behavioral query on-demand using the query API.

  • This type of behavioral query can evaluate to a complex value like a list or an event object, in addition to a simple value like a number, Boolean, or string.
  • You analyze even more complex behavior by making multiple calls to the JavaScript API.
  • You can also use the JavaScript API to debug behavioral queries that you are planning to use in your Custom Behavioral Attributes.