Campaigns

Timeline

After setting up the basic details for the campaign the next step is to configure the timeline. This is where the magic happens! A campaign always starts with a ‘Start’ step and ends with an ‘End’ step. The timeline describes the possible path(s) a subscriber can follow from start to end. In the timeline you can have the following block types:

Start: all subscribers who match the campaign trigger and entry filters are placed here.

Pause Block: these blocks are used to put subscribers on hold for a certain amount of time in the timeline. You can name hold blocks so you can easily recognize what happens in the step. 

Decision Block: decision blocks enable you to let subscribers take different paths throughout the campaign timeline based on their activity. Each block allows for three different paths. You can configure one hold, and two rules. Rules allow you to check whether a subscriber has viewed a certain page on your website, or received/opened/clicked a specific notification. Note that subscribers can only match one decision at a time. Setting two rules and connecting them to a single notification does not mean that subscribers must match both rules before they are sent the notification.

Notification Block: select a notification template to send to your subscribers.

End: subscribers completed the timeline and exit the campaign run

Let's look at how you can use decision blocks. For example, you could configure the campaign timeline like the figure below:

Before the decision block, subscribers are sent a Visit Careers notification. The decision block checks whether the subscriber has clicked that notification, or discarded it. Rule 1 checks whether it was clicked, and if so, routes the subscriber to the end of the campaign:

Rule 2 checks if the notification has not been clicked. If so, the campaign waits 3 days, after which the subscriber receives the notification again.

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">

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

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