Linking SalesIQ data with WebForm Lead Record

Linking SalesIQ data with WebForm Lead Record

I have created a Webform as specified below in CRM. It works well to capture information and transfer it into CRM Leads. However It does not link the visitor SalesIQ behaviour to the record. I would like it so that when I look up that lead I can also see what he has done on the website prior to filling out the webform. I have enabled the tracking on the form, but dont seem to get any info in the Lead Record (SalesIQ behaviour section is empty)?
What am I missing?


<!-- Note :
   - You can modify the font style and form style to suit your website. 
   - Code lines with comments “Do not remove this code”  are required for the form to work properly, make sure that you do not remove these lines of code. 
   - The Mandatory check script can modified as to suit your business needs. 
   - It is important that you test the modified form before going live.-->
<div id='crmWebToEntityForm' style='width:600px;margin:auto;'>
   <META HTTP-EQUIV ='content-type' CONTENT='text/html;charset=UTF-8'>
   <form action=' https://crm.zoho.com/crm/WebToLeadForm' name=WebToLeads2256487000000122027 method='POST' onSubmit='javascript:document.charset="UTF-8"; return checkMandatory()' accept-charset='UTF-8'>

<!-- Do not remove this code. -->
<input type='text' style='display:none;' name='xnQsjsdp' value='59d237c0c60cbb93164ece045dc44e9a993328e40a7692cc9cdb966c2a30477c'/>
<input type='hidden' name='zc_gad' id='zc_gad' value=''/>
<input type='text' style='display:none;' name='xmIwtLD' value='02341846e282cb6b9f83b9f4c7756b9024f53b290d3c6b7ae5e745bc3deba473'/>
<input type='text' style='display:none;'  name='actionType' value='TGVhZHM='/>

<input type='text' style='display:none;' name='returnURL' value='https&#x3a;&#x2f;&#x2f;wwwcbxmarketcom.azurewebsites.net&#x2f;demo-video&#x2f;' /> 
<!-- Do not remove this code. -->
<input type='text' style='display:none;' id='ldeskuid' name='ldeskuid'></input>
<input type='text' style='display:none;' id='LDTuvid' name='LDTuvid'></input>
<!-- Do not remove this code. -->
<style>
tr , td { 
padding:6px;
border-spacing:0px;
border-width:0px;
}
</style>
<table style='width:600px;background-color:white;color:black'>

<tr><td colspan='2' style='text-align:left;color:black;font-family:Arial;font-size:14px;'><strong>Demo Video</strong></td></tr>

<tr><td  style='nowrap:nowrap;text-align:left;font-size:12px;font-family:Arial;width:200px;'>Name<span style='color:red;'>*</span></td><td style='width:250px;' ><input type='text' style='width:250px;'  maxlength='80' name='Last Name' /></td></tr>

<tr><td  style='nowrap:nowrap;text-align:left;font-size:12px;font-family:Arial;width:200px;'>Company<span style='color:red;'>*</span></td><td style='width:250px;' ><input type='text' style='width:250px;'  maxlength='100' name='Company' /></td></tr>

<tr><td  style='nowrap:nowrap;text-align:left;font-size:12px;font-family:Arial;width:200px;'>Email<span style='color:red;'>*</span></td><td style='width:250px;' ><input type='text' style='width:250px;'  maxlength='100' name='Email' /></td></tr>

<tr><td  style='nowrap:nowrap;text-align:left;font-size:12px;font-family:Arial;width:200px;'>Phone<span style='color:red;'>*</span></td><td style='width:250px;' ><input type='text' style='width:250px;'  maxlength='30' name='Phone' /></td></tr>

<tr style='display:none;' ><td style='nowrap:nowrap;text-align:left;font-size:12px;font-family:Arial;width:50%'>Lead Source</td><td style='width:250px;'>
<select style='width:250px;' name='Lead Source'>
<option value='-None-'>None</option>
<option value='Advertisement'>Advertisement</option>
<option value='Cold&#x20;Call'>Cold Call</option>
<option value='Employee&#x20;Referral'>Employee Referral</option>
<option value='External&#x20;Referral'>External Referral</option>
<option value='Online&#x20;Store'>Online Store</option>
<option value='Partner'>Partner</option>
<option value='Public&#x20;Relations'>Public Relations</option>
<option value='Sales&#x20;Email&#x20;Alias'>Sales Email Alias</option>
<option value='Seminar&#x20;Partner'>Seminar Partner</option>
<option value='Internal&#x20;Seminar'>Internal Seminar</option>
<option value='Trade&#x20;Show'>Trade Show</option>
<option value='Web&#x20;Download'>Web Download</option>
<option selected value='Web&#x20;Research'>Web Research</option>
<option value='Chat'>Chat</option>
</select></td></tr>

<tr style='display:none;' ><td style='nowrap:nowrap;text-align:left;font-size:12px;font-family:Arial;width:50%'>Website</td><td style='width:250px;' ><input type='text' style='width:250px;'  maxlength='255' name='Website' value='Demo&#x20;Video&#x20;Form&#x20;Submitted'></input></td></tr>

<tr><td colspan='2' style='text-align:center; padding-top:15px;'>
<input style='font-size:12px;color:#131307' type='submit' value='Submit' />
<input type='reset' style='font-size:12px;color:#131307' value='Reset' />
   </td>
</tr>
   </table>
<script>
   var mndFileds=new Array('Company','Last Name','Email','Phone');
   var fldLangVal=new Array('Company','Name','Email','Phone');
var name='';
var email='';

   function checkMandatory() {
for(i=0;i<mndFileds.length;i++) {
 var fieldObj=document.forms['WebToLeads2256487000000122027'][mndFileds[i]];
 if(fieldObj) {
if (((fieldObj.value).replace(/^\s+|\s+$/g, '')).length==0) {
if(fieldObj.type =='file')
alert('Please select a file to upload.'); 
fieldObj.focus(); 
return false;
alert(fldLangVal[i] +' cannot be empty.'); 
         fieldObj.focus();
         return false;
}  else if(fieldObj.nodeName=='SELECT') {
      if(fieldObj.options[fieldObj.selectedIndex].value=='-None-') {
alert(fldLangVal[i] +' cannot be none.'); 
fieldObj.focus();
return false;
  }
} else if(fieldObj.type =='checkbox'){
  if(fieldObj.checked == false){
alert('Please accept  '+fldLangVal[i]);
fieldObj.focus();
return false;
  } 
try {
    if(fieldObj.name == 'Last Name') {
name = fieldObj.value;
     }
} catch (e) {}
   }
}
trackVisitor();
}
</script><script type='text/javascript' id='VisitorTracking'>var $zoho= $zoho || {salesiq:{values:{},ready:function(){$zoho.salesiq.floatbutton.visible('hide');}}};var d=document;s=d.createElement('script');s.type='text/javascript';s.defer=true;s.src=' https://salesiq.zoho.com/cbxmarket/float.ls?embedname=cbxmarketcompublicweb';t=d.getElementsByTagName('script')[0];t.parentNode.insertBefore(s,t);function trackVisitor(){try{if($zoho){var LDTuvidObj = document.forms['WebToLeads2256487000000122027']['LDTuvid'];if(LDTuvidObj){LDTuvidObj.value = $zoho.salesiq.visitor.uniqueid();}var firstnameObj = document.forms['WebToLeads2256487000000122027']['First Name'];if(firstnameObj){name = firstnameObj.value +' '+name;}$zoho.salesiq.visitor.name(name);var emailObj = document.forms['WebToLeads2256487000000122027']['Email'];if(emailObj){email = emailObj.value;$zoho.salesiq.visitor.email(email);}}} catch(e){}}</script>
</form>
</div>