Enable Tracking
If you are on the PushPro Business (or Enterprise) plan, you will have access to user segmentation. For segmentation to work, PushPro will collect various anonymous data from your subscribers, such as their browser type, timezone, and visited page URLs. If you want to use segmentation, make sure to have this setting enabled.
If you are not (yet) on the Business plan, you can still enable this feature. This will let you already gather subscriber data which you can use as soon as you upgrade to the Business plan. You’ll be off to a great start with already a lot of subscriber data at your disposal!
Note that enabling subscriber tracking will update your code snippet to include a line tracking, so make sure to update the snippet on your website.
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></script>
window.__pushpro = {
site_uuid: "your-unique-identifier",
}
https://storage.googleapis.com/push-pro-java-scripts/pushpro-lib.js">