AMPscript is powerful. But it Controlling SFMC can also be complicated. For more on getting started with the scripting language checkout the recording of this AMPscript Bootcamp webinar.
Rodrigo and Aisha created a fun email just
for our show that they personalized for the three of us as well as an “unknown” subscriber. In the video, Rodrigo shows us how he used Engineering Email List SFMC data extensions to power the personalization in this dynamic email. Depending on the recipient, the email displays a different photo, name, and animal based on what’s in the data extension. He shows us how to set up the variables and definitions for these personalization’s.
Here’s a gallery of the four different personalized versions:
A common roadblock to personalized emails is data that isn’t 100% clean. For example, a contact filled out a form using all lowercase letters, but you want their Controlling SFMC name and other data capitalized in your campaigns. Instead of editing what’s in your database, Aysha explains that you can fix this at the email template level using an AMPscript function called ProperCase.
Another potential personalization problem is a lack of subscriber data. Depending on how and where you acquired a contact, you may have a lot of information about them, or you may have nothing but an email address.
That’s why Rodrigo also demonstrated
how to code an if/else statement in AMPscript that creates a fallback when data needed for personalization Aero leads is missing. For example, the code below states that if the data for displayname is missing then use the text “Email Developer”. The else part of the statement concatenates a first and last name from the data extension