This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
LIOLookIOManager *lookIO = [LIOLookIOManager sharedLookIOManager]; | |
[lookIO setCustomVariable:@"654321" forKey:@"customer_id"]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
LIOLookIOManager *lookIO = [LIOLookIOManager sharedLookIOManager]; | |
NSString* customerId = [lookIO customVariableForKey:@"customer_id"]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
LIOLookIOManager *lookIO = [LIOLookIOManager sharedLookIOManager]; | |
[lookIO clearCustomVariables]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Reports custom events to the LivePerson Agent Console and reporting system. | |
* @param {string} name of the event | |
* @param {Object} mixed data associated with the event | |
*/ | |
/** | |
* Predefined event name constants | |
*/ | |
LPMobile.LP_EVENT_CONVERSION; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript"> | |
/* LP Mobile JS Configuration */ | |
var _LP_CFG_ = { | |
app_id : "YOUR_MOBILE_SITE_ID", | |
options : { | |
// All configuration options defined in here | |
extras : function() { // A static dictionary or a function that returns a dictionary of custom variables | |
var extras = {'varName1': 'varValue1', | |
'varName2': 'varValue2'}; | |
return extras; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript"> | |
/* LP Mobile JS Configuration */ | |
var _LP_CFG_ = { | |
app_id : "YOUR_MOBILE_SITE_ID", | |
options : { | |
// All configuration options defined in here | |
onChatNotAnswered : function(messages) { // An event that fires after a message is sent by the user but agents are no longer available. It takes one parameter which is an array of the messages attempted to be sent by the user. | |
alert('All chat agents are currently helping other customers. Please call our customer service center at 800-555-5555'); | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript">if(window.screen.width <= 740){ document.write('<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no, width=device-width">');}</script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript"> | |
/* LP Mobile JS Configuration */ | |
var _LP_CFG_ = { | |
app_id : "YOUR_MOBILE_SITE_ID", | |
options : { | |
// All configuration options defined in here | |
skill : 'new-mobile-skill' // Replace with registered mobile skill | |
} | |
}; | |
/* End of Configuration */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<button onclick="LPMobile.setSkill('new-mobile-skill')">Set new mobile skill</button> |