Handling Single Page Applications

Handling Single Page Applications

If your website is a single page application (SPA) then some additional configuration will be required for the Talkative Chat Widget.

In addition to the usual attributes passed to the talkative widget, you will need to pass an attribute to inform the widget that the website is an SPA:

The attribute is: 


This will make the widget aware of the SPA configuration, and will track page changes through the history API, rather than the current page that the script was loaded on. An example of your Talkative widget could be as follows: