JS and Presence pixel setup

1. Add the following string to header section of the html page. The most common practice is to have this reference added to global website template.

<script language="JavaScript" src="http://your-domain.com/messenger7/js/sm.js">
</script>

2. Now we need to add presence code responsible for user's authentication and online status update. Online presence code should be set globally throughout entire website, otherwise user won't be visible for the system and no chat request can be sent / received. The most common practice is to have presence code embedded into global template:

 <div style="width:1px;height:1px"> 

    
<script type="text/javascript"> 
try {
z5messenger.uid = '2010';
z5messenger.StartPresence();
 
} catch(err) {}
</script> 
</div> 

The main parameter we will be using throughout entire integration process is "UID". This a global user identifier used to retrieve profile and authentication data. At this phase of installation we set it to random value of "2010" to verify that all the steps were performed successfully.