This article provides you with information for setting up Web Push notifications to user groups across multiple browsers.
1. Web Push tab
To check the existing Web Push Messages, go to Channels->Web Push tab. On this tab you can see details of all your web push messages listed with their Name, Recipient source, Status, Domain name, number of messages Sent, the date it was Created and last Changed.
Clicking the delete is a hard delete action. It means that the delete action is irreversible and will delete the Push message permanently.
1.1. Recipient Source
A Push message can have one of the following Recipient sources:
- Automation Center – Sends push messages from an Automation Center or Interactions program.
- Using a segment – Sends push messages to a standard Emarsys segment.
A Push message can have one of the following statuses:
- In design – Some content or settings are still missing.
- Tested - Test message has been sent but not launched yet.
- Ready to launch – Not activated yet, but ready to launch.
- Launched - Campaign has been launched
2. Creating a new push message
Click Create Web Push Message in the Web Push tab to open the message creation wizard. Emarsys offers a very intuitive workflow for creating new push messages. These are presented in the form of the following main steps:
2.1. Message settings
Define the General settings of your brand new push message campaign (or rename your existing one).
- Message name – You can name (or later rename) your push message to identify the campaign on the Push Messages tab.
- Domain name – You can select the domain on which you want to display your message notification. You can send your message only to one domain. Only domains already associated with your account are listed here.
Recipient source – Define the target audience of your message. For options, see Recipient source.
- Segment – You can select a pre-built segment, if you are using a segment for your recipient source.
2.2. Recipient source
The options for Recipient source are as follows:
- Automation – Sends push messages from an Automation Center or Interactions program.
Web Push Message can only be used in an Automation Center or Interactions Program if the Recipient Source is set to Automation Center and the Push Message is launched. After the Push Message is launched, it can be selected in the drop-down menu of the push node in Automation Center. If the Push Message is not yet launched, then it will not show up in the drop-down.
- Using a segment – Sends a push message to a standard Emarsys segment.
3. Content creation
In the Content creation step you have several tabs to use for defining the content of your push message campaign and also the Preview pane to add text/media. The tabs in the Content Editor are the following:
3.1. Adding text and rich media
To add text to the push message, type the text directly into the Preview pane available on the right hand side of the screen.
There are 2 types of images that can be added to campaign, icon image and banner image.
- Click on the Media Icon at the right of the push message.
- Click on the plus icon to the right of the image you wish to add to the push message.
- Click Apply.
The recommended size of the icon image is 192 pixels by 192 pixels.
3.2. Personalization tab
You can add a personalized token to your push message, as follows:
- Use the dynamic search field to find the required personalized token.
- Alternatively, you can select a token from the following categories:
- Capabilities: Contact data (General, Personal, Company, Other)
- Use Cases: External, First Name, Voucher
- Alternatively, you can select a token from the following categories:
- Drag the selected token over onto the Preview pane and drop it to the field where you want.
3.3. Action Buttons
Action button support requires the Web SDK and Service Worker to be on version 2.5.0 or above
Use the Action Buttons tab to add a destination URL for when the contact clicks on the push message.
There are 2 options when setting the destination URL:
- Add Default Action - The destination URL if the user clicks anywhere on the web push campaign message.
- Add Button - It is possible to add up to 2 action buttons to provide the user a choice of action.
Only Chrome browsers currently support action buttons. It is therefore strongly recommended to set a default action for users that do not use Chrome.
When adding a Default Action or Action Button, there are 2 link type options:
- External URL - Choose this if the link is a standard link to the website.
- Deep link - If the link is to deep link into a section of an Android mobile app, choose this option. Please note, the Android app should be preconfigured to know how to handle the link.
Once the action type is selected, enter the URL and click Apply.
Edit the label of the button directly on the campaign preview screen.
3.4. Languages tab
You can add and remove languages. Use the dynamic search field to find the requested language or select it from the drop-down list then click Add.
Add any new languages and write the message content in that language. Languages which are not shown here will receive the content in the browser default language.
You can delete languages as well, but a default language is mandatory.
If you add a language but it has no content, those customers will also receive content in the browsers default language.
3.5. Custom Data tab
You can use custom data fields to attach metadata to web push messages and act on this data after a message is delivered.
These fields come in handy in the case of triggered web push messages: you can use custom data fields to add data to the API call and customize the push message with it.
To create custom data fields, navigate to Web Push > Domains and click the Custom Data Fields icon, then click Create Custom Data Fields.
Please note that the same guidelines apply to Web Push and Mobile Engage custom data fields. For more information, see Custom data fields.
3.6. Testing a push message
Click Test Messages button on the left.
In the appearing Send Test Message window, you can specify an email address or contact list to which a test message will be sent.
The test email address must be a valid address in your Emarsys database, associated with a known device.
For sending the test message to a contact list or segment, the maximum number of contacts allowed in the contact list is 50. This is to mitigate the risk of sending to a large audience by accident.
If sending of the test message fails, a red warning message appears on the screen. The reasons for this could be the following:
- No contact has been found in Emarsys database with the given email address.
- The email address has been found, but there is no device associated to it.
To test your message, click Save & Send.
Click Next step to continue to the Scheduling step.
When you have tested your message, and the recipient source is using a segment you can continue to the Scheduling step.
On this screen, the number of users in the applied segment are displayed.
In the Scheduling section, you can either select Launch now for immediate action, or you can define a specific date and time in the future and click Schedule. Scheduling launches in the future is available to all kinds of recipient sources except the Automation Center.
When a message is scheduled for launch, the contents of the message are still editable right up until launch and can even be deleted. If the message content is deleted for any additional language, the default language will be used; if that is empty no message will be sent.