Question
Can I use the visitor page URL condition to trigger a proactive message if I use the Web Widget on a single-page application (SPA) website?
Answer
No. The condition visitor page URL for proactive messages does not work if you install the Web Widget on a SPA website. This is because of how SPA websites work.
SPA websites let users move between views without a full page reload. As a result, the Document Object Model (DOM) and the page do not refresh during navigation.
Because the page does not reload, the necessary checks and updates do not run in real time. Therefore, the Web Widget cannot accurately determine the visitor's current location on the site. For more information, see Creating proactive messages for the Web Widget.