Introduction:


emptyStringNOTE: This content is not relevant for customers that use the LiveEngage platform.

You can pass custom variables from your own scripts to the LivePerson Monitor Tag. The data received from the custom variables is presented in the Agent Console's Info tab, and also within your chat transcripts. The exact format depends on the scripting language used.

Instructions:


JSP

Standard Monitor Code

<!-- BEGIN Monitor Tracking Variables -->
<script language="JavaScript1.2">
if (typeof(lpMTagConfig.sessionVar) == "undefined"){ lpMTagConfig.sessionVar = new Array();}
lpMTagConfig.sessionVar[lpMTagConfig.sessionVar.length] ='lp_variable_name=JSP.variable.name';
</script>
<!-- End Monitor Tracking Variables -->


Legacy Monitor Code

<!-- BEGIN Monitor Tracking Variables -->
<SCRIPT language=JavaScript1.2>
if (typeof(tagVars) == "undefined") tagVars = "";tagVars += "&SESSIONVAR!lp_variable_name=<%=JSP.variable.name%>";
</SCRIPT>
<!-- End Monitor Tracking Variables -->


ASP

<!-- BEGIN Monitor Tracking Variables -->
<SCRIPT language=JavaScript1.2>
if (typeof(tagVars) == "undefined") tagVars = "";tagVars += "&SESSIONVAR!lp_variable_name=< %=ASP.variable.name%>";
</SCRIPT>
<!-- End Monitor Tracking Variables -->

 
PHP

<!-- BEGIN Monitor Tracking Variables -->
<SCRIPT language=JavaScript1.2> if (typeof(tagVars) == "undefined") tagVars = "";tagVars += "&SESSIONVAR!lp_variable_name=<?=$PHP_variable_name;?>"; </SCRIPT>
<!-- End Monitor Tracking Variables -->





Keywords: custom variables raservicerequest