Popups can be a great way to engage users with timely content. A popup overlays on the top of your website instead of displaying inside a predetermined area (<div>) on the page. Since a popup prevents your customers from using your site until they have engaged or dismissed the content, it is very important to ensure that it is displayed only at the appropriate moment.
With Blueshift, you can display popups on your website using a Live Content campaign .
Let’s look at an example use case and see the steps required to display a popup. You can follow the same steps for any other use case as well.
Example
In this example, we will set up a campaign to display a popup message to the customer informing them about a special discount offer. If the customer dismisses the popup, the popup will not be displayed for the next 3 days. The popup will not be displayed again if the customer clicks a link or a button within the popup content.
You can use a similar campaign to remind customers to renew subscriptions, update expiring credit card information, accept updated terms and conditions for your site and so on.
Here are the steps involved:
- Create a popup slot.
- Set up an HTML template that defines the content that will be displayed in the slot.
- Set up a Live Content campaign to display the popup.
- Integrate the popup slot with your website page.
Create a popup slot
To add a new popup slot, complete the following steps:
- Go to Creatives > Live Content.
- Go to the Slots tab and click +SLOT.
- Add the slot Name.
- Select slot Format as Popup.
- Click Create.
In the following example, the slot is named as popup_promo.
Set up an HTML template for the popup content
- To add a Live content HTML template, complete the following steps:
- Go to Creatives > Live Content.
- Go to the Templates tab and click +TEMPLATE.
- Click HTML template.
- Add the name for the template. In this example, we have added the name as popup_promo_winter.
- Select Layout as Popup.
- Go to the Template Info tab and set the template properties.
- Go to the Source tab and add the content for the popup.
- Optionally, you can also add custom elements to the popup content from the Elements tab.
- Preview the popup content
- Save the template.
Set up a Live Content campaign
To set up a Live Content campaign journey, complete the following steps:
- Go to Journeys > Campaigns in the left navigation and click +CAMPAIGN.
- Select Live Content, add a Name for your campaign and click CREATE CAMPAIGN.
In this example, the campaign is named as popup_promo. - For the Slot, select the slot that you created in Step 1.
In the example, the slot is named as popup_promo. - For the Template, select the template that you created in Step 2.
In the example, the template is named as popup_promo_winter. - You can select a Segment to target a specific set of customers.
In this example, we are targeting all customers. - Set a Start date and an End date.
- Set a Priority for the campaign.
- Add the following filters to the campaign.
- The following filter ensures that the popup is displayed only after 3 days if the customer dismisses the popup.
- In the filters section, go to the "Matches none of these" group and click +Add Condition.
- Select "Messaging Attributes".
- For the Timeline, select within past 3 Days.
- Select Channel as Live Content.
- Select Action as Dismiss.
- Select Campaign as "popup_promo". Note that this filter refers to the current campaign itself.
- Click Save.
- The following filter ensures that the popup is not displayed again if the customer clicks any links or buttons in the popup content.
- In the filters section, go to the "Matches none of these" group and click +Add Condition.
- Select "Messaging Attributes".
- Select Channel as Live Content.
- Select Action as Click.
- Select Campaign as "popup_promo". Note that this filters refers to the current campaign itself.
- Click Save.
- Save the campaign.
- The following filter ensures that the popup is displayed only after 3 days if the customer dismisses the popup.
You can preview the campaign by selecting a Preview User and clicking Preview Launch. Note that you will be able to see a preview only if the current date and time is within the campaign date range. If your campaign is set to start at a future date, temporarily set the campaign Start date in the past so that you can see a preview.
Integrate popup slot with website page
For the popup to display on your website, you must invoke the slot via blueshift.js.
You must also invoke the blueshift.identify({}) function and pass information about the customer using a customer identifier. By identifying the customer, Blueshift can correctly apply messaging filters and other customizations. For anonymous users without any user identifiers, you should still call the identify function without any arguments (ex. blueshift.identify({})). This is required for Blueshift to show the default campaign content.
For more information, see Integrating popup slots.
blueshift.identify({email: "janedoe@demosite.com"})
blueshift.live({
popup_promo: {
popup: true
}
})
Note that `popup: true` is passed into the slot context for the `popup_promo` slot. This lets blueshift.js know that `popup_promo` is a popup which does not require a <div> element on the page.
Comments
0 comments