Last active
December 21, 2015 03:29
-
-
Save grantmiller/6243015 to your computer and use it in GitHub Desktop.
LP Mobile Conversion sample
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; | |
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