Understand the different types of dynamic content and learn how create and apply personalization blocks and conditional statements to a delivery.
Welcome to Adobe Campaign classic. In this module, we will be looking at how to configure dynamic content.
We will now create our own block that will provide a link to register or login depending on if the recipient is a member or not.
I will just move this higher up so we can see better. First let’s change the label to Member Block and change the internal name as well.
Make sure to check this following tick box. This box enables rendering in either HTML or text depending on a recipient’s mailbox headings. It’s best practice to enter our HTML via the source tab. You can switch to the HTML tab for a better view of the layout and play back and forth with both views. Now we will insert a conditional statement from this dropdown.
Go to Conditional Content and select If. You now have an if statement inserted and need to enter the value you want to evaluate. Select the menu drop down again.
Go to Recipients, and here you have a select few of the attributes. To see all of them click Other, and you can search or navigate to find the attribute you want.
For us, we want membership level and it’s inserted into the text editor for us. Now, a lot of these attributes on the recipient are expressed as numbers in the database. And the value zero is used to represent a recipient who is not a member. Now, if a recipient is not a member, it will render the content with this conditional block. So let’s enter single quote, zero single quotes.
Now we will enter our contents in this block.
Let’s write the word register.
We will now highlight the word, and select this hyperlink button. We can now enter our registration URL in this text field. For now I will just enter adobe.com for the purposes of this demo and I will change the targets to open in a new window.
Press Add to complete. You can now see the basic HTML has been added to your source code. You can go to the HTML view to get a rendered view of your hyperlink.
We also want to provide a login link to the recipients who are members. To do this, we expand on the condition by placing an else statement meaning if their membership level is not zero, meaning they are a member, then render this portion of the content instead. Like before, we’ll go to this dropdown, Conditional Content, and select Else. Like before, we’ll enter our content, we’ll say login, highlight the text, do hyperlink, I’ll enter adobe.com for now and the target will be a new window, press Add. We now have two conditions. One checking if the recipient is not a member therefore rendering a hyperlink to register, and the second condition is all other members regardless of their level, and providing them with a login. Lastly, we would like to provide a special login link for our premium members. We need to add an else if condition checking for these members. Between the if and the else, we’ll place this condition.
We’ll go to this dropdown, Conditional Content, to else if.
We now need to insert the member select field again so you have this dropdown and recipients, membership level is here, and it’s at the top level because it’s our most recently used attribute, and the value we need to change.
In this case, we will be looking for the value four which is the number used to represent premium members.
Now we need to change the content.
We’ll say premium login, and do the hyperlink.
Now we can render a special login for our premium members.
I will now clean up the constructs in order for them to work so just delete a couple of these derivatives.
You now have created your first personalization block using conditional statements. Now that we have created our personalization block, let’s apply it to an email delivery to see it in action. Go to Deliveries and let’s click Create to create a basic email delivery.
In our HTML content, we will add the out-of-box greeting personalization block followed by our custom personalization block. Go to the dropdown, go to Include, and go to Other right at the bottom.
This brings up a window that has all personalization blocks. Let’s select Greetings, and let’s do the same again for our personalization block.
We called it member block, so let’s add this in. Now you have two blocks included in your HTML content. We are now able to preview this as we’ve covered before.
Now let’s select some recipients and see how the content is rendered based on the different types.
Here, we have a registered link showing that this recipient is not a member.
We’ll go to a different recipient.
Well see, we are greeted with the login hyperlink meaning this recipient is a member. And finally, to test the premium link.
This recipient is a premium member as you can see by our premium login hyperlink. Our personalization block has been successful. You should now be able to describe what dynamic content is, identify the different types of dynamic content, and compose your own personalization blocks and use them in a delivery. Thank you, and I will see you next time. -
For more information please see the product documentation.