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:
- 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 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.
- A working Recommendation setup, this link illustrates how to set up Recommendations in your dashboard.
- The Recommendation should have the below event set up:
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, an event 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_NOT_SEND
{% endif %}
{% endfor %}
{% else %}
MOE_NOT_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_NOT_SEND
{% endif %}
{% endfor %}
{% else %}
MOE_NOT_SEND
{% endif %}
info |
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. |