1. Home
  2. Knowledge Base
  3. The Digioh Platform
  4. Is there a runtime JS variable I can use in VWO or Optimizely that Digioh reads to disable lightboxes?

Is there a runtime JS variable I can use in VWO or Optimizely that Digioh reads to disable lightboxes?

Yes, this is possible.

1) Set the following variable in VWO or Optimizely. Make sure this is set on the window object:

window.disable_digioh = true;
window.disable_digioh = false;

2) In Custom JS (Parent) – Before Lightbox Display. Check the above variable, and “return false;” if Digioh is disabled. This will prevent any boxes from displaying.
On the other hand, if Digioh is enabled, then do not return anything from this Custom JS section. So in box JS it would look like:
if (window.disable_digioh) {
   return false;
}

Updated on February 13, 2025
Was this article helpful?

Related Articles

Need Support?
Can't find the answer you're looking for?
Contact Support