Skip to main content
These objects describe experiments and personalizations and whether each one activated in the current visit.

Experiment

An Experiment object represents a Kameleoon A/B test. Core properties include the segment and associated variations. Variations contain the JavaScript and CSS code that implements the changes. Properties

Personalization

A Personalization object represents a Kameleoon personalization action for a specific segment. Core properties include the segment and the associated single variation. The Variation object contains the JavaScript and CSS code that implements the personalization action. Properties

ExperimentActivation

An ExperimentActivation object represents an experiment activated during a specific visit. Because visits can be historical, the associated experiment might have stopped. In such cases, the engine doesn’t inject experiment metadata (name, launch date, segment) into the application file, which makes it unavailable through the API. However, the IDs remain available. Properties

PersonalizationActivation

A PersonalizationActivation object represents a personalization activated during a specific visit. As with experiments, metadata is unavailable if the personalization has stopped, although IDs remain accessible. Properties

Variation

A Variation object represents a component of an Experiment. An A/B test contains multiple variations, such as an A/B test with one variation plus reference or an A/B/C test with two plus reference. Personalizations associate with a single Variation object.
During variation code execution, the this keyword references the corresponding Variation object. Use this reference to navigate the object hierarchy (for example, through the associatedCampaign property).
Properties

Template

A Template object represents an instantiated Widget template. Use templates to generate variations from a common codebase through the Kameleoon app interface. A Template object contains predefined fields and their values for the associated variation. Properties