1. Home
  2. Knowledge Base
  3. The Digioh Platform
  4. How can I trigger re-evaluation of Campaign conditions?

How can I trigger re-evaluation of Campaign conditions?

Sometimes due to user interaction, the state of your page changes in a way that would cause another Digioh campaign to display. However, conditions are only evaluated once at the time of page load. If you want to re-evaluate conditions and potentially trigger Campaigns, you can call these functions:

From Digioh Parent or Campaign JS:

api.LIGHTBOX.checkConditionsLoad()
api.LIGHTBOX.checkConditionsClick()
api.LIGHTBOX.checkConditionsHover()
api.LIGHTBOX.checkConditionsScroll()
api.LIGHTBOX.checkConditionsExit()
api.LIGHTBOX.checkConditionsTime()

From your own site JS:

DIGIOH_API.LIGHTBOX.checkConditionsLoad()
DIGIOH_API.LIGHTBOX.checkConditionsClick()
DIGIOH_API.LIGHTBOX.checkConditionsHover()
DIGIOH_API.LIGHTBOX.checkConditionsScroll()
DIGIOH_API.LIGHTBOX.checkConditionsExit()
DIGIOH_API.LIGHTBOX.checkConditionsTime()

You can run any or all of the above functions to re-check the rules and trigger eligible campaigns. “checkConditionsLoad” is any campaign not containing any “click, hover, scroll, exit, or time” rules.

Updated on February 13, 2025
Was this article helpful?

Related Articles