Price drop notification using Dynamic Product Messaging and Jinja

Objective: To get a user to complete the purchase process by showing them the price drop for the product which they have last added to the cart or viewed.

The following needs to be done for sending the price drop notification:

  1. An event that has an event attribute price in which the user has done a view/added to the cart. (reference name used product_price)
  2. A catalog and a respective feed that has a sale price/ discounted price column. Please set the feed to refresh every day so that the latest discount price info can be added. To know more about Product catalogs and feeds, please click here.
  3. A working DPM setup, this link illustrates how to set up DPM in your dashboard.
  4. The Product Set should have the below event set up:CreatePdtSet_Event.png

For the view event, use the view event configuration. The data tracking can be enabled for 2 or more days. 

Once the above prerequisites are met, a smart trigger campaign is to be created with an add to cart event or view event and the following jinja code. Notification triggers can be set to a few hours post the event or as required.

Title: Price drop alert
Message:

{% if ProductSet.AddToCartProductset%}
{% for product in ProductSet.AddToCartProductset[0:1]%}
{%if EventAttribute['product_price']>product.sale_price%}
Price for {{product.title}} has reduced further! {% else %} MOE_DONT_SEND
{% endif %}
{% endfor %}
{% else %}
MOE_DONT_SEND
{% endif %}


Image link -

{% if ProductSet.AddToCartProductset%}
{% for product in ProductSet.AddToCartProductset[0:1]%}
{%if EventAttribute['product_price']>product.sale_price%}
{{product.image_link}}
{% else %}
MOE_DONT_SEND
{% endif %}
{% endfor %}
{% else %}
MOE_DONT_SEND
{% endif %}
 

NOTE

The campaign might show personalization errors for the users who have viewed/added the product to the cart and there is no drop in the product price. This campaign will be targeted only when there is a price drop in the product and the user has done the campaign event.

Was this article helpful?
3 out of 3 found this helpful