Home / Admin / Remove Subscriber from Segment
Duplicate Snippet

Embed Snippet on Your Site

Remove Subscriber from Segment

This snippet helps remove a push subscriber from a segment on the defined event.

Code Preview
js
var peRemoveSegmentNames = [];  // Array of segment ids e.g, ["segment1", "segment2"]
window.PushEngage = window.PushEngage || [];
PushEngage.push(function () {
  PushEngage.removeSegment(peRemoveSegmentNames)
    .then(function (response) {
      console.log(response);
    })
    .catch(function (error) {
      console.log(error.message, error.details);
    });
});

Comments

Add a Comment