Overview
When you go to your Kayako instance and enable the messenger widget, upon reloading the page and going to the browser console, you might see the error that reads TypeError: Cannot read property 'url' of undefined.
The same behavior can be reproduced on those external websites where the messenger code was added.
This article explains why this error appears and how to fix it.
Root Cause
The error is caused due to the missing privacy URL in the admin area. You need to add a privacy URL to prevent this error from appearing.
Resolution
Add a new privacy policy link in the admin area:
- Go to your Admin Console.
- Click Privacy Policy Links under CUSTOMIZATIONS.
- Click the Add new privacy policy button.
- In the Url box, enter the URL for your privacy policy.
- Choose the privacy policy type:
- Register: Displays in the registration form.
- Cookie: Displays in the We use Cookies pop-up when the user opens the website for the first time.
- Select the language for your privacy policy under Choose locale of privacy policy. The policy can be added in multiple languages (a different URL is required for each locale).
- Check the box to Make this default Privacy Policy URL (if required). If checked, this URL will be active for all your languages.
- Click Save when done.