Email Personalization (Old)
Simple Attribute Personalization
Applicable for both Broadcast and Journey Campaigns
- We can personalize the Emails by personalizing any attribute in the HTML text of the email
- To include any attribute in the test we should put the attribute name in the format using square brackets: [attribute]
E.g. Hi [NAME], welcome to Netcore Smartech !!
This would be displayed as:
Hi Ram, welcome to Netcore Smartech !!.
You can assign multiple attributes to create a great personalized campaign
Digestified Email Template
Applicable only for Journeys
There are two broad categorizations under which Smartech can send a digestified email
1. Digestified mailer for Paired events:
Smartech currently supports the below paired events to send a digestified mailer
.
These are common use cases that we have encountered that are applicable for the majority of our users.
The paired events occur in sequence. Below is a table detailing the event pars that is supported in smartech.
Activity 1 | Case 1 | Wait | Activity 2 | Case 2 | Action(Email) |
---|---|---|---|---|---|
Product View | User has viewed multiple products | 1 hour | Add To Cart | User has not added product into the cart | Smartech will send digestified email |
Product View | User has viewed multiple products | 1 hour | Lead Submitted | User has not submitted the lead | Smartech will send digestified email |
Product Search | User has searched multiple products | 1 hour | Product View | User has not viewed the product | Smartech will send digestified email |
Product Search | User has searched multiple products | 1 hour | Add To Cart | User has not added product into the cart | Smartech will send digestified email |
Product Search | User has searched multiple products | 1 hour | Lead Submitted | User has not submitted the lead | Smartech will send digestified email |
Lead Submitted | User has submitted the lead form | 1 hour | Product Purchase | User has not done product purchase | Smartech will send digestified email |
Add To Cart | User has added multiple products into the cart | 1 hour | Checkout | User has not done checkout | Smartech will send digestified email |
Add To Cart | User has added multiple products into the cart | 1 hour | Cart Expiry | The event is passed by brand | NA |
Add To Wishlist | User has added multiple products into the wishlist | 1 hour | Add To Cart | User has not added product into the cart | Smartech will send digestified email |
For these use cases we will be using the format Text{{activity payload}}Text
Below is the sample code for email digestification in case of array in payload,that will display the email shown above
HELLO, [NAME] [LASTNAME]
{{ cnt = 0 }}
{{sale_price =0}}
{{ FOREACH Omi IN COLLECTIONS }}
{{ FOREACH item IN Omi.items }}
{{ cnt = cnt + 1 }}
{{ sale_price = sale_price + item.price * item.prqt }}
Description - {{ item.name }}
Price - ₹{{ item.price }}
Quantity - {{ item.prqt }}
Total - ₹ {{ item.price }}*{{ item.prqt }}
Total Cost
₹{{ sale_price }} (Amount will be payble)
Coupons Applied
₹{{ Omi.coupons }} (Amount will be payble)
Address.City
{{ Omi.address.city }}
In case of array in payload i.e payload will contain data in root level as well it can have array or hash assigned to a key at root level.
If any such data needs to be used for personalization in template then 2 “For” loops are required.
First For loop helps to fetch data from root level and second For loop each inside first will run on a single key at root level containing hash.
Personalized emailer for Custom events:
For events that are not a part of the list mentioned in point 1 , it is possible to create a customized email. You can also use Square brackets [ ] ,however it will only take the first item by default.
{{ payload }} -for cases where data is passed in simple payload format
{{items.payload}}- for array in payload cases.
For example:
Hi [NAME],
Welcome to ABC.com .
Thank you for downloading Report on {{REPORT_NAME}} from our website.
An example of a custom event might be a user logs in and downloads a report.
Hi Ram,
Welcome to ABC.com .
Thank you for downloading Report on ” Shopping trends of 2019” from our website.
All of the other things as mentioned above will remain the same.
Please note that these are not available in broadcast campaigns.
Updated over 4 years ago