Attribute-based mobile push campaign

Published November 08, 2023
Modules
Difficulty

You can customize mobile push messages to display appropriate content based on your customer’s attributes. Personalize your outreach by tailoring messages to your audience’s gender preferences and understand and cater to the unique needs and interests of both male and female consumers for more successful marketing and sales strategies.

This use case describes how to create a mobile push notification for customers based on their gender with the use of attribute stored in the customer’s profile.

Prerequisites


  • Integrate Synerise mobile SDK in your mobile application.
  • Implement mobile pushes in your mobile application: iOS, Android.
  • Store gender attribute on customer’s profile
    Note:

    In our example, a customer can have the attribute user_gender, which stores one of values:

    • woman
    • man

Create push notification


In this part of the process, you will create a simple mobile push notification that displays content based on the assigned gender attribute value.

  1. Go to Campaign icon Communication > Mobile Push > Create new
  2. Enter the name of the push notification (it is only visible on the list of notifications).
  3. As the mobile notification type, select Simple push.
  4. Specify Device type according to you business needs:
    1. Select one of the tabs: All, Android or iOS.
    2. Click Apply.
  5. Define your Audience according to you business needs.

Define Content


  1. In the Content section, click Define.

  2. Click Create message.

  3. Select the Drag&drop builder.

  4. Prepare the message which your customer will get:

    1. In the Title field, enter the text that will display in the header of the notification. You can use up to 160 characters.

    2. In the Message field, enter the text that will display in the body of the notification. Use the below code, which will select the appropriate message depending on the user’s attribute:

              <!-- Content for users with woman attribute value --> 
              {% if customer.user_gender == "woman" %}
              Check new woman collection
              <!-- Content for users with man attribute value -->
              {% elif customer.user_gender == "man" %} 
              Check new man collection
              <!-- Content for users without such attribute -->
              {% else %}
              Check new collection
              {% endif %}
              
    3. Optionally, you can define settings in OS tabs. Select the OS for which your notification is dedicated, if you create a template for both OS, fill out the settings in both tabs: iOS and Android.

    4. In the Action type section, define what happens when the customer clicks the notification, choose Deep linking or Open URL. Use the same code as in the Message field:

              <!-- Content for users with woman attribute value --> 
              {% if customer.user_gender == "woman" %}
              Check new woman collection
              <!-- Content for users with man attribute value -->
              {% elif customer.user_gender == "man" %} 
              Check new man collection
              <!-- Content for users without such attribute -->
              {% else %}
              Check new collection
              {% endif %}
              
    5. If your template is ready, click Next.

      The view of the mobile push notification configuration
      Mbile push notification configuration
  5. Click Apply.

Schedule the notification and additional parameters


In this part of the process, you will define when the push notification will be sent.

  1. In the Schedule section, click Define.
    1. Choose Display time according to your business needs.
    2. Additionally, you can enable Silence Hours.
  2. Click Apply.
  3. Optionally, in the Additional parameters section, you can add up to 10 parameters which will be added to every event generated by this communication.
  4. Click Send.

Check the use case set up on the Synerise Demo workspace


You can check the mobile push configuration directly in Synerise Demo workspace.

If you don’t have access to the Synerise Demo workspace, please leave your contact details in this form, and our representative will contact you shortly.

Read more


😕

We are sorry to hear that

Thank you for helping improve out documentation. If you need help or have any questions, please consider contacting support.

😉

Awesome!

Thank you for helping improve out documentation. If you need help or have any questions, please consider contacting support.

Close modal icon Placeholder alt for modal to satisfy link checker