Introduction
With the preset workflows of On-site messages you can suggest products or items and automatically interact with users at various stages of their purchasing journey or when they show interest. These interaction points can include landing pages, pages visited, exit intent, and other parameters.
At MoEngage, creating an email campaign is a three-step process.
- Target users
- Content
- Schedule and goals
You can personalize the campaign content with recommendations in the second step 'Content'. Let us create a recommendation based personalized OSM campaign.
warning |
Warning Ensure that you have created the desired recommendations. You can use only active recommendations for campaign personalization. Learn how to create and manage recommendations. |
Create OSM campaigns with Recommendations
- Click Create Campaign and select the On-site channel.
-
Enter the basic campaign details and define the audience in step 1 'Target users' and click Next.
- In step 2, on the Content tab, select a template from the available options. For the defined scope of this article, let us select a nudge template of 'Text based CTA'.
- Let's remove the existing text OSM template and personalize the value with recommendation to feature item that have very limited stock available.
- You can define change the background color or add a background image as suits your need.
- On entering '@' in the text block, a personalization pop-up opens. Search and select the desired recommendation name under data personalization drop-down.
- Once selected, you need to update the Jinja code inside the Jinja code block as following:
{% if ProductSet.DemoOnlyFewLeft%}
{% for product in ProductSet.DemoOnlyFewLeft[0:1]%}
{{product.title}}
{% endfor %}
{% else %}
MOE_NOT_SEND
{% endif %} - In a similar fashion, let us personalize with image link of recommendation item as following
{% if ProductSet.DemoOnlyFewLeft%}
{% for product in ProductSet.DemoOnlyFewLeft[0:1]%}
{{product.image_link}}
{% endfor %}
{% else %}
MOE_NOT_SEND
{% endif %} - You may also want to personalize with web page link for CTA as following
{% if ProductSet.DemoOnlyFewLeft%}
{% for product in ProductSet.DemoOnlyFewLeft[0:1]%}
{{product.link}}
{% endfor %}
{% else %}
MOE_NOT_SEND
{% endif %} - We encourage you to preview the recommendations delivery in OSM by testing the campaign before publishing. Enter the page URL under test campaign input and click Test.
- You will be able to preview the test results as following.
- After you complete the content setup with recommendations, click Next at the bottom and move to 'Schedule and Goals', which is the step 3 of campaign setup.
- Set up the appropriate schedule and delivery controls and publish the campaign.