Recent searches


No recent searches

Pat Behrens's Avatar

Pat Behrens

Joined May 02, 2023

·

Last activity May 02, 2023

Following

0

Followers

0

Total activity

3

Vote

1

Subscription

1

ACTIVITY OVERVIEW

Latest activity by Pat Behrens

Pat Behrens commented,

CommentLive chat departments, triggers, operating hours, and routing

Joey, did you have any success finding out why that was happening? My company is using the chat widget and we set the department via the API. We will intermittently have issues where the department is not set and the chat will be sent to our default which is a problem.

 

Our code looks like this:

(function() {
window.opener = null;
window.$zopim||(function(d,s){var z=$zopim=function(c){z._.push(c);},$=z.s=d.createElement(s),e=d.getElementsByTagName(s)[0];z.set=function(o){z.set._.push(o)};z._=[];z.set._=[];$.async=!0;$.setAttribute('charset','utf-8');$.src='https://v2.zopim.com/?3XwTShAYzG4dmNuhM8rHkll6wjX9mXIN';z.t=+new Date;$.type='text/javascript';e.parentNode.insertBefore($,e)})(document,'script');
$zopim(function(){
$zopim.livechat.addTags('webcode: 0-015C');
$zopim.livechat.setOnChatStart(function(){$.post('https://{{devURL}}/zchat/start',{e: $zopim.livechat.getEmail()},null,'json');});
$zopim.livechat.setOnChatEnd(function(){$.post('https://{{devURL}}/zchat',{v: $zopim.livechat.getName()},null,'json');});
$zopim.livechat.window.setOffsetVertical(2);
$zopim.livechat.window.setPosition('tl');
$zopim.livechat.window.setSize('medium');
$zopim.livechat.window.show();
$zopim.livechat.departments.filter('');
$zopim.livechat.departments.setVisitorDepartment('SpecificDepartment');
$zopim.livechat.theme.setColor('#0076bf');
$zopim.livechat.window.setTitle('SpecificDepartment');
$zopim.livechat.concierge.setAvatar('https://{{devURL}}/images/rs/zopim_chat/chat_logo.png');
$zopim.livechat.theme.reload();
});
})();

View comment · Posted May 02, 2023 · Pat Behrens

0

Followers

0

Votes

0

Comments