Skip to content

Instantly share code, notes, and snippets.

@grantmiller
Last active December 21, 2015 03:29
Show Gist options
  • Save grantmiller/6243015 to your computer and use it in GitHub Desktop.
Save grantmiller/6243015 to your computer and use it in GitHub Desktop.
LP Mobile Conversion sample
/**
* 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;
LPMobile.LP_EVENT_PAGEVIEW;
LPMobile.LP_EVENT_SIGNUP;
LPMobile.LP_EVENT_SIGNIN;
LPMobile.LP_EVENT_ADDEDTOCART;
//Example:
LPMobile.reportEvent(LPMobile.LP_EVENT_CONVERSION, "99.99");
// example with two strings:
LPMobile.reportEvent("orderTotal", "99.99");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment