Segmentation

Segmentation is one of the most powerful feature. Our no-code segmentation allows users to add users in segments based on the url or pattern they visit on your website. But sometimes you have to add users into segments due to some custom logic on your server. That can be done by calling the following method of our javascript sdk.

popnotifi("addSegment", "[segment id defined in Dashboard]");

You can subsequently remove user from the segment by calling.

popnotifi("removeSegment", "[segment id defined in Dashboard]");

‚Äč