You are viewing an old version of this page. View the current version.
Compare with Current View Page History
« Previous Version 3 Next »
The method allows getting information for all active NPS categories.
personaclick("nps", "categories", success, error);
The current user's Phone.
personaclick("segment", "add", { "segment_id": 100500, "email": "john.doe@examplestore.com", "phone": "+10000000000" });
personaclick("segment", "add", { "segment_id": 100500, "email": "john.doe@examplestore.com" });
personaclick("segment", "add", { "segment_id": 100500, "phone": "+10000000000" });
personaclick("segment", "add", {"segment_id": 100500});
The method allows excluding the current user from a segment.
personaclick("segment", "remove", params);
personaclick("segment", "remove", { "segment_id": 100500, "email": "john.doe@examplestore.com", "phone": "+10000000000" });
personaclick("segment", "remove", { "segment_id": 100500, "email": "john.doe@examplestore.com" });
personaclick("segment", "remove", { "segment_id": 100500, "phone": "+10000000000" });
personaclick("segment", "remove", {"segment_id": 100500});
The method allows getting a list of segments that include the current user.
personaclick("segment", "get", callback);
Object array, each will have the following properties:
static, dynamic
personaclick("segment", "get", function(segments) { segments.forEach(function(segment) { console.log(segment.id); console.log(segment.type); }); });