Provide 24/7 affordable customer service with AI-powered chat.
Connect to learn more

Prevent timeouts on single page apps

If you have an single page app, or site that is entirely built using AJAX calls, it is possible that a visitor's connection to Olark could eventually time out. This is because Olark would not be seeing activity from the visitor, such as sent messages or page URL changes.

Add a configure call

To prevent that happening, look for this line in your existing Olark embed code:

/* custom configuration goes here (www.olark.com/documentation) */

Immediately below that, paste this line:


olark.configure('system.is_single_page_application', true);

This tells Olark to be sympathetic to single page applications and not time out the visitor.

See how else you can configure the chatbox with the Olark API.

Please provide the domain name where your Olark live chat is installed.
Include the relevant transcript URL, if possible. You can send us the specific URL from your Transcripts page.
If you see specific error messages, banners, warnings, notices, etc., please let us know here.
Max file size 10MB.
Uploading...
fileuploaded.jpg
Upload failed. Max size for files is 10 MB.
Thank you! Your submission has been received and you'll hear from us shortly!
Oops! Something went wrong while submitting the form.