Handling Single Page Applications (SPA)

Created by Seb Coulthread, Modified on Tue, 23 Apr 2024 at 09:49 PM by Seb Coulthread

How to handle URL rules within SPA with the Talkative widget rules.

Talkative's widget supports SPA websites.

However, you will need to use card-based URL rules, rather than the primary URL rules.

To recap, primary URL rules are used to control which widget containers fire on different URLs.

Card-based rules dictate when Cards will show up - where a Card is a component inside of a container.

Screenshot 2022-11-03 at 14.05.43

Primary URL rules are set here - but for SPAs, they will not work reliably.

Setting Card-Based URL Rules

Card-based URL rules are set within the visibility section of the Standby Phase

You can use a ruleset to have multiple rules trigger the standby card.

In this example, the Card will fire on every page, apart from URLs that contain /support

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select atleast one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article