Wednesday, July 24, 2024
- Advertisement -
More

    Latest Posts

    Using Inline Conditions In Email Subjects -Customer Insights Journeys

    There are so many options in Realtime Marketing emails for creating conditional and personalised content. Most of it is pretty easy to add, and a few clicks of buttons and you’re on your way. What about when it comes to determining what goes in to the subject or preview text of the email? It’s not so obvious how to do that, but it’s still possible with a few clicks and pretty straightforward once you know how. Let’s take a look at how to use inline conditions in email subjects, and this example we will do it based on switching the language displayed depending on the preferred language of the recipient.

    First thing, create your email. Once that’s done, click on the personalise icon from the right hand side and then click on Add condition in the Inline conditions section.

    Using Inline Conditions In Email Subjects -Customer Insights Journeys
    Click to view in detail

    Give the first condition a name. This one will be for people who would prefer their emails in French. The condition to set would then to access a field you use on the Contact (or Lead) field to determine that language. Note that although you might see a language field, there is no point using it if you don’t ever ask the Contacts about what language they would prefer, so make sure it’s a field actually used by your organisation!

    Click to view in detail

    Once you’ve accessed the field, set the logic. In this case, if the Language field on the Contact equals French.

    Click to view in detail

    Now do the same thing again and add any other languages you want to check for. In my example I have French and German. I don’t need to add an option for English because that will end up being my default. Once you’ve added all of your conditions, click on the little code icon from the top right of the Inline conditions section.

    Click to view in detail

    Now you can build your condition. Pick the first condition, then add in the next one, then click on the box to add a Default content condition.

    Click to view in detail

    Now you just need to add in what you actually want to display in between each of the conditions. So from the code example above, you can see below where I have added in what I want the subject to be for each language.

    {{#if German}}Haben Sie unsere neueste Veranstaltung gesehen {{FirstName}}?{{else if French}}Avez-vous vu notre dernier événement {{FirstName}}?{{else}}Have you seen our latest event {{FirstName}}?{{/if}}

    Once you’ve put your full code together, go ahead and paste it in to the Subject field of the email.

    Click to view in detail

    You can preview the email to see what it will look like. First we can see it in English, because neither French nor German are found.

    Click to view in detail

    If you then set French (or whatever condition you have added) to True, the subject will change to display that value.

    Click to view in detail

    Finally, I change it to be True for German, and then we see that text instead.

    Click to view in detail

    So not that difficult, and yet another way to create a truly customised dynamic email to send to your Contacts or Leads. Hope this helps!

    Latest Posts

    - Advertisement -

    Don't Miss

    Stay in touch

    To be updated with all the latest news, offers and special announcements.