Question
Can I require users to accept cookies first before using the Web Widget?
Answer
Yes. To handle the EU cookie law and GDPR compliance, MorgWard created the cookies setting API so you can require users to accept cookies first before using the Web Widget.
Here are some of the expected behaviors and suggestions for usage when you add the cookies setting API to your page or site.
- Add the Web Widget cookies setting API to your web page below your Web Widget snippet and set it to false to disable the use of cookies. Chat and Help Center authentication won't be available until the visitor allows cookies to be set.
- When consent is granted, typically when a user clicks accept on a cookie banner, call the cookies setting API again and set it to true to enable the use of cookies. Chat and Help Center authentication becomes available for visitors.

- If you don’t want the widget to load at all until cookies are enabled, use the hide API to hide the widget on the initial page load. Then, when you call the cookies setting API to enable cookies, also call the show API to make it appear.
For more information about our cookie setting API, see the guide: Cookies setting API.
Comments
0 comments
Please sign in to leave a comment.