Skip to main content
This module provides methods to access live personalizations.

disable

The disable() method marks a personalization as turned off. Use this for interactive elements like pop-ins. When a user closes the element, call disable() to update the personalization status. Kameleoon automatically implements this call for native, non-custom interface elements.
Arguments

getActive

The getActive() method returns active personalizations for the current visit and page. A personalization is active if its variation code has executed and the associated action remains visible. To retrieve personalizations that triggered on other URLs or that are now closed, such as pop-ins, use getTriggeredInVisit().
Return value

getAll

The getAll() method returns all live personalizations (running, not draft/paused/stopped).
Return value

getById

The getById() method returns the personalization for the specified ID.
Arguments Return value

getByName

The getByName() method returns the personalization for the specified name.
Arguments Return value

getTriggeredInVisit

The getTriggeredInVisit() method returns all personalizations triggered during the current visit.
Return value

getActivatedInVisit

The getActivatedInVisit() method returns all personalizations activated during the current visit.
Return value

trigger

The trigger() method forces a personalization to trigger, bypassing targeting segment conditions. This action initiates the personalization but might not activate it.
Arguments