Segmentation

Segment your audience

Segmentation is a powerful feature to send your push notifications to a specific group of people. It enables you to send notifications to subscribers who for example speak Spanish, visited a specific page on your website, or use a specific device or browser. 

To set up segments, navigate to the segmentation menu in the PushPro portal. If you’ve configured segments before, you will see an overview of them. For every segment you can see on which domain it’s active. If you want to edit a segment, click the edit icon on the right-hand side. To create a new segment, click “Create Segment” on the top-right. 


Segmentation Manager


Note that you must have tracking enabled in your domain configuration to be able to use segmentation!

Configuring segments

You can modify various settings of the segment. Start by selecting the domain you want this segment to be active on. Next up, input a recognizable name for your segment, such as Android users, German residents or High value customers. Now you can add the segmentation rules. Each row in the interface represents a segmentation rule. For each rule you can configure the following:

  • And/Or: determines whether all rules should be met, or one of the rules.
  • Attribute: select the attribute you want to match against.
  • Comparison: how the value will be compared to the rule.
  • Value: your custom value.

When you add a rule, you have the option to add another rule by clicking the “Add new rule” button. You can configure as many rules for a segment as you’d like. Do note however, that the more rules you add, the smaller your segment will be. The image below displays a possible segment configuration for European Android users who have last visited your checkout page:



Verify your setup

You can verify if you set everything up correctly by navigating to https://yourdomain.com/. If you see a push notification opt-in request, everything is working! That’s all, your website is now ready to send push notifications!

If you do not see an opt-in request, you can check whether the code snippet and javascript file were correctly added. Navigate to https://yourdomain.com/sw.js. Here you should find the following text:

importScripts('https://storage.googleapis.com/push-pro-java-scripts/pushpro-sw.js');

Next up, you can verify whether you correctly added the code snippet. On https://yourdomain.com/, right-click anywhere on the website and select “Page Source”. Here, you should find the following text:

<script>
window.__pushpro = {
site_uuid: "your-unique-identifier",
}
</script>
<script src="https://storage.googleapis.com/push-pro-java-scripts/pushpro-lib.js"></script>

Ready to take PushPro for a spin? Get started for free now.
Sign Up
arrow_forward

Drop us a mail

Thank you! Your submission has been received!
Something went wrong while submitting the form. Please try again or contact support@pushpro.io

Social Channels

Leave a review