All Collections
Best Practices & Use Cases
Use Cases
How to personalize the content of my push notification?
How to personalize the content of my push notification?

You can add some personalization to your push by using Dynamic content in your campaigns. Here are all the steps you need to follow.

Antoine avatar
Written by Antoine
Updated over a week ago

Batch provides a system of dynamic content and a templating engine, allowing you to make dynamic messages for your campaigns.

How can I personalize my push?

You can personalize your push notifications from the campaign editor.

When editing your message, just click on the {...} button, choose the custom attribute, tag collection or trigger event data you want to personalize your message with, and the formatting. For instance, you can customize the name, the city, or the amount left in the pot's user.

Once it's done, click again on the {...} button below the preview to see how the notification will look for 10 random installs.

💡 Don't forget to add a default value so that the content of your message adapts if the user doesn't have the attribute fulfilled. When editing your message, just click on the {...} button to add it.

Best practices

For some users, you may not have data information available.

There are three different options regarding dynamic custom attributes if you target all your user base:

  • For logged users and with custom data available (for instance first_name), the custom attribute will appear in the message;

  • For logged users and without custom data available (for instance first_name), it will generate a blank space in your message. To avoid a blank space, you should use this condition code:

Hello{% if c.firstname|trim(nullIfEmpty:true) != None %} {{ c.firstname }}{% endif %}!

Note: It works for all your dynamic custom data, you just have to replace 'c.firstname' with the one you want and "Hello" with your proper wording.

  • For non-logged users, there is no custom data available so the default value will appear in the message.

Using dynamic content wisely in your notifications

As you can use the native and custom data you have collected on your users, dynamic messages can be very handful to build user loyalty by creating bonds, update users about special info or event near them, or encourage them to use the app.

It will definitely help you make a difference in the eye of your audience and optimize your open rate.

Here are a few examples:

This article belongs to Batch's FAQ. Need more help? Find insightful articles, documentation, case & market studies, guides, and even more in our website's Resources section on and our blog.

Did this answer your question?