The callback function will be executed if the request is successful.
error
Function
optionally
The callback function in case of an error - any non 200 HTTP response.
Request parameters
Name
Type
Requirement
Description
channel
string
required
The NPS channel code.
category
string
required
The NPS category code.
rate
number
required
The rating got from the user.
comment
string
optionally
User comment.
Example of use
personaclick("nps", "review", {
channel: "website",
category: "delivery",
rate: 9,
comment: "It's not bad, but it could be better."
}, function() {
// when the survey is successfully saved
}, function(error) {
// when something went wrong
});