Steps to create audience segment.
Step 1 : Login to your PushAssist Control Panel.
Step 2 : Go to Notifications -> Segments tab & Click on create segments button.
Step 3 : Add the following JS code on your category pages or on any pages of your site.
Subscribing for Single Segment
<script> var _pa = []; _pa.push('segmentname1'); </script>
Subscribing for Multiple Segments
<script> var _pa = []; _pa.push('segmentname1','segmentname2'); </script>