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.

 

Prerequisites:

-> 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)

-> A catalog and a feed having 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 catalog and feed, please follow the below link 

https://help.moengage.com/hc/en-us/articles/115003793323-Create-Product-Catalogs

-> A working DPM set up, please follow below tech doc to set up DPM in your dashboard.

https://help.moengage.com/hc/en-us/articles/115004239526-Create-Product-Sets

-> Product set should have the below event set up 

c4452b41-a131-4e2d-a647-c511fdd7cd32.png

Note - For 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 to be created with an add to cart event or view event and the following jinja code. Notification trigger 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_NOTIFICATION {% endif %}{% endfor %}{% else %} MOE_DONT_SEND_NOTIFICATION {% 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_NOTIFICATION {% endif %}{% endfor %}{% else %} MOE_DONT_SEND_NOTIFICATION {% endif %}

 

Note - 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?
0 out of 0 found this helpful