You are viewing an old version of this page. View the current version.
Compare with Current View Page History
« Previous Version 10 Current »
The method allows adding the current user to a segment.
personaclick("segment", "add", params);
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, rfm
personaclick("segment", "get", function(segments) { segments.forEach(function(segment) { console.log(segment.id); console.log(segment.type); }); });
Page Navigation
Related Pages