In-app message with a price drop for recently viewed products

Published February 13, 2023
Modules
Difficulty

In-app messaging has become an essential tool for businesses as it provides a direct and personal communication channel with customers.

Price drops are a key aspect of business strategy to drive sales, increase customer engagement, and enhance brand loyalty. In an ever-competitive market, price drops can help companies stand out and create a unique value proposition for their customers. With the right strategy, price drops can produce significant results, leading to revenue growth and increased customer engagement.

For customers, price drops represent an opportunity to save money on products that interest them. This, in turn, can increase customer loyalty and satisfaction and encourage repeat purchases.

The scenario described in this use case involves using an in-app message to notify customers of price drops on recently viewed products. The in-app message will be displayed right after the start of the mobile session only for customers for whom the product they were viewing has actually been reduced in price.

In-app price drop message example

Prerequisites


Process


In this use case, you will go through the following steps:

  1. Create an aggregate that returns the IDs of visited products
  2. Create an aggregate that returns the prices of visited products
  3. Create an aggregate that returns sku of recently purchased products
  4. Create an in-app campaign

Create an aggregate that returns the IDs of last visited products


  1. Go to Analytics iconAnalytics > Aggregates > New aggregate.
  2. Enter the name of the aggregate.
  3. As the type of the aggregate, select Last multi and size: 100.
  4. Select the Consider all occurrences of the event parameter radio button.
  5. From the Choose event drop-down list, select the page.visit event.
  6. As the event parameter, select product:retailer_part_no.
  7. Click the + where button.
  8. From the Choose parameter drop-down list, select the product:retailer_part_no parameter.
  9. From the Choose operator drop-down list, select Is true (Boolean).
  10. Set the period for which the aggregate will return IDs of the viewed products to the last 30 days.
  11. Save the aggregate.
Configuration of the aggregate with last visited products
Configuration of the aggregate with last visited products

Create an aggregate that returns the original prices of last visited products


  1. Go to Analytics iconAnalytics > Aggregates > New aggregate.
  2. Enter the name of the aggregate.
  3. As the type of the aggregate, select Last multi and size: 100.
  4. Select the Consider all occurrences of the event parameter radio button.
  5. From the Choose event drop-down list, select the page.visit event.
  6. As the event parameter, select product:original_price:amount.
  7. Click the + where button.
  8. From the Choose parameter drop-down list, select the product:original_price:amount parameter.
  9. From the Choose operator drop-down list, select Is true (Boolean).
  10. Set the period for which the aggregate will return the original prices of viewed products to the last 30 days.
  11. Save the aggregate.
Configuration of the aggregate with original price of last visited product
Configuration of the aggregate with original price of last visited product

Create an aggregate that returns the skus of recently purchased products


This aggregate will be used to exclude products that the customer has already purchased.

  1. Go to Analytics iconAnalytics > Aggregates > New aggregate.
  2. Enter the name of the aggregate.
  3. As the type of the aggregate, select Last multi and size: 100.
  4. Select the Consider all occurrences of the event parameter radio button.
  5. From the Choose event drop-down list, select the product.buy event.
  6. As the event parameter, select $sku.
  7. Click the + where button.
  8. From the Choose parameter drop-down list, select the $sku parameter.
  9. From the Choose operator drop-down list, select Is true (Boolean).
  10. Set the period for which the aggregate will return skus of the viewed products to the last 30 days.
  11. Save the aggregate.
Configuration of the aggregate with skus of last visited product
Configuration of the aggregate with skus of last visited product

Create an in-app campaign


In this part of the process, you will create an in-app campaign triggered by the session.start event. We will use a predefined template for the price drop scenario, so there is no need to create a template from scratch.

  1. Go to Campaigns menu icon Communication > In-app messages > Create new
  2. Enter a meaningful name for the in-app campaign.

Define the audience


  1. In the Audience section, click Define.
  2. Select the Everyone tab.
  3. Click Apply.

Define content


  1. In the Content section, click Define.
  2. Click Create message and from the list of template folders, select Predefined templates.
  3. Select Price alert template.
    Result: You are redirected to the code editor.
    Note: You can edit the template in two ways, by editing the code of the template (add inserts, add variables) and/or by filling out the form in the Config tab. In this use case, we will use the capabilities of the predefined Config tab.

Edit form in the Config tab


The form in the Config tab is already filled in with default values. You can keep them or change them to fit your business needs.
The fields in Config are split into two types: ones for dynamic content (related to Jinja) and ones for in-app appearance. The dynamic content fields must match the values in the catalog and the names of the attributes returned by the recommendations. The appearance fields only affect the visual layer of the in-app message.

  1. In the Header text text box, type the header you want to display in the in-app message.
  2. From the Aggregate with IDs of products the customer interacted with drop-down list, select the aggregate you created in this step. You can find it by typing its name or ID in the search box.
    Note: In this scenario, customers interact with the product by viewing it. This is just one example. You can create other aggregates to show different types of interaction with the product, such as adding it to the cart or favorites list, etc. This also applies to all related aggregates used in this use case.
  3. From the Aggregate with prices of products the customer interacted with drop-down list, select the aggregate you created in this step. You can find it by typing its name or ID in the search box.
  4. From the Aggregate with IDs of products purchased drop-down list, select the aggregate you created in this step. This field corresponds to the code fragment in the template that excludes products displayed in the in-app message, so the products with the IDs returned by the selected aggregate won’t be displayed.
    You can find it by typing its name or ID in the search box.
  5. In the Name of the catalog with product information field, change the default Snrs-produktu-ogTag value to the catalog name with product information you use. In our case, we use the same product catalog.
  6. In the Name of the column with sale price field, change the default g:sale_price value to the name of the column with sale price in your catalog with product information. In our case the name of the column with sale price is product:sale_price:amount.
    Note: The price defined in this field refers to a column in the catalog with the discount price of the product.
  7. In the Name of the column with product title field, change the default og:title value to the name of the column with product title in your catalog with product information.
  8. In the Name of the column with product link field, change the default og:url value to the name of the column with product link in your catalog with product information.
  9. In the Name of the column with image link field, change the default og:image value to the name of the column with image link in your catalog with product information.
  10. Define the Name of the column with average rating and Name of the column with number of ratings fields if you want to include this information in your in-app message.
  11. In the Name of the column with price field, change the default product:original_price:amount value to the name of the column with price in your catalog with product information.
    Note: The price defined in this field refers to the column in the catalog with the original price of the product - the price before any reductions.
  12. In the Button text text box, type the text you want to display on the in-app button that adds the product to the cart.
  13. Define the color in the following fields: Wrapper background color, Button background color, Button text color.
  14. After you make changes to the template, you can check the preview.
    1. Click the Preview button on the upper left side.
    2. Enter the ID of a customer or a product.
    3. Click Apply.
  15. If the template is ready, in the upper right corner, click Save this template > Save as.
  16. On the pop-up:
    1. In the Template name field, enter the name of the template.
    2. From the Template folder drop-down list, select the folder where the template will be saved.
    3. Confirm by clicking Apply.
  17. To continue the process of configuring the in-app campaign, click Next.
  18. To save your content changes, click Apply.

Select events that trigger the in-app message display


In this part of the process, define the event that triggers the display of the in-app message. In our case, the trigger is the start of the session start.

  1. In the Trigger events section, click Define.
  2. Select Add event and from the drop-down list, choose the session.start event.
  3. Click the + where button and as the parameter, choose mobile.
  4. As the logical operator, select Exists.
  5. Click Apply.
The view of In-app trigger event configuration
In-app trigger event configuration

Schedule the message and configure display settings


As the final part of the process, you need to set the schedule, display settings configuration, capping, priority of the message among other in-app messages.

  1. In the Schedule section:
    1. Click Define.
    2. Choose Run immediately option.
    3. Click Apply.
  2. In the Display settings section:
    1. Click Define.
    2. Define the Delay display as 5 and Priority index as 1.
      Note: The mobile application can display one in-app message at a time. If the conditions allow the display of several in-apps at a time, the priority is a decisive factor for displaying the message. The messages with lower priority arenโ€™t queued.
    3. Enable the Frequency limit toggle to manage the frequency of in-app message display in the application.
      In our case, we want to display the message to the customer maximum once a day.
    4. You can additionally enable the Capping limit toggle to limit the amount of time the in-app message can be displayed to a customer in general.
    5. Click Apply.
  3. Optionally, you can define the UTM parameters in the UTM & URL parameters section. Otherwise, click Skip step.
  4. Optionally, you can add the custom parameters in the Additional parameters section. Otherwise, click Skip step.
  5. To start your campaign, click Activate.
In-app campaign configuration settings
In-app campaign configuration settings

Check the use case set up on the Synerise Demo workspace


You can check the configuration of the campaign components 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