Javascript API
New Widget
$zopim.livechat.cookieLaw
Enable EU Cookie Law (e-Privacy Directive) compliance modes.
Important: These functions must be inserted immediately after the Zendesk Chat Script.
Summary
$zopim. | Enable EU Cookie Law (e-Privacy Directive) compliance modes. |
Functions | |
comply | Display a notice that cookies are used the first time the visitor opens the chat window. |
setDefaultImplicitConsent | Disable the live chat widget and do not store cookies until the visitor explicitly allows the use of cookies. |
comply
function comply()
Display a notice that cookies are used the first time the visitor opens the chat window. Visitors can choose to allow or disallow cookies from the Options menu only when this function is called.
Example
#NORUN <script> $zopim(function() { $zopim.livechat.cookieLaw.comply(); }); </script>
setDefaultImplicitConsent
function setDefaultImplicitConsent()
Disable the live chat widget and do not store cookies until the visitor explicitly allows the use of cookies.
Important: This must be called together with and immediately after $zopim.livechat.cookieLaw.comply. Refer to the example below.
Example
#NORUN <script> $zopim(function() { $zopim.livechat.cookieLaw.comply(); $zopim.livechat.cookieLaw.setDefaultImplicitConsent(); }); </script>
Display a notice that cookies are used the first time the visitor opens the chat window.
function comply()
Disable the live chat widget and do not store cookies until the visitor explicitly allows the use of cookies.
function setDefaultImplicitConsent()