You are viewing an old version of this page. View the current version.
Compare with Current View Page History
Version 1 Next »
The method allows adding the current user to a segment.
PersonaClick.addToSegment(segmentId, email, phone)
The current user's Phone.
PersonaClick.addToSegment("100500", "john.doe@examplestore.com", "+10000000000");
PersonaClick.addToSegment("100500", "john.doe@examplestore.com", null);
PersonaClick.addToSegment("100500", null, "+10000000000");
PersonaClick.addToSegment("100500", null, null);
The method allows excluding the current user from a segment.
Personaclick.removeFromSegment(segmentId, email, phone)
PersonaClick.removeFromSegment("100500", "john.doe@examplestore.com", "+10000000000");
PersonaClick.removeFromSegment("100500", "john.doe@examplestore.com", null);
PersonaClick.removeFromSegment("100500", null, "+10000000000");
PersonaClick.removeFromSegment("100500", null, null);
The method allows getting a list of segments that include the current user.
PersonaClick.getCurrentSegment(callback)
Object array, each will have the following properties:
static, dynamic, rfm
PersonaClick.getCurrentSegment(new Api.OnApiCallbackListener() { @Override public void onSuccess(JSONArray segments) { // segments (type: array of objects) } });
Page Navigation
Related Pages