Segments¶
Specific groups of users can be targeted based on Segments, more information on segment based campaigns can be found here.
Use the setSegments method to pass Segment data (unique key/value pairs) from the app for targeted engagement:
Map<String, String> segmentMap = new HashMap<>(); segmentMap.put("gender", "male"); segmentMap.put("age", "18"); pulseSdk.addSegments(segmentMap);
If you need to clear the segments for this particular user, use the clearSegments
method:
pulseSdk.clearSegments();