Skip Navigation
Expand
  • Advanced SearchOpens new dialog
    Enter plus (+) or minus (-) signs in search terms to make a word required or excluded
    Search Tips
    Filter by product
    Filter by category
Engagement Engine rules loading inconsistently
Answer ID 12985   |   Last Review Date 04/25/2025

Why am I seeing inconsistent behavior on my site when using Engagement Engine?

Environment:
 
Engagement Engine
 
Issue:
 
We are seeing an inconsistent loading of the Engagement Engine which is not always triggering the rules associated to the site for some users, however other times it works with no issues. This issue occurs on multiple browsers and can be experienced by multiple people located in different areas.
 
Resolution:
 
The Engagement Engine framework when loaded via 'eesvcs.js' registers a callback for window: load event. With this callback, the framework kicks off its execution. It is possible that your setup may cause a  race condition with the window:load event.
 
The recommended method to load the Engagement Engine is by adding the JavaScript tag directly on the host page. See the Add Page Tags to Your Test Website section in the Engagement Engine documentation. 
 
If, however, you are using an external file to inject Engagement Engine, you will need to make sure that there are no race conditions with the window:load event. This can be achieved by trying to load the Engagement Engine as early as possible in the life cycle.
 
If you are still experiencing any inconsistent behaviors after taking this information into consideration, raise a Service Request with Technical Support by following this link: Ask Technical Support
Notify Me
The page will refresh upon submission. Any pending input will be lost.