Re: Email Scripting for Dynamic Content

Anonymous
Not applicable

Email Scripting for Dynamic Content

I have some dynamic content blocks that require segment 1 + segment 2 to be true to show. For example, if a person's job title is "Marketing Manager" AND city is "New York City", then show them content for Marketing Manager in NYC.

Sounds like I need to do email scripting for those because dynamic content in the email editor only allows one segment per content block.

I've never done email scripting.

Any guidance on where to begin the learning process for this particular case?

4 REPLIES 4
Grégoire_Miche2
Level 10

Re: Email Scripting for Dynamic Content

Hi Olivia,

You may want to strat here: http://developers.marketo.com/email-scripting/

Some examples are provided.

-Greg

SanfordWhiteman
Level 10 - Community Moderator

Re: Email Scripting for Dynamic Content

You can do this one of two ways:

1. Rephrase the segment qualification Smart Lists within Velocity:

pastedImage_0.png

2. Use the segments themselves directly:

pastedImage_1.png

The advantage of the former is that you can eliminate some segmentations entirely, provided their criteria can be echoed in Velocity (for example, they don't rely on Activity History). And you only get a limited number of segmentations.

The advantage of the latter is that if you've already set up your Smart Lists and/or they require a deeper peek into Lead characteristics, you can reuse the segment memberships in any permutation.

Iryna_Zhuravel4
Level 8 - Champion Alumni

Re: Email Scripting for Dynamic Content

Hey Olivia, these 2 blogs by Kristen were the best place to start for me with velocity scripting

Basic Email Scripting Examples for Marketers

A Few More Email Scripting Examples 

Apache Velocity - Velocity User Guide - great resource to dig a little deeper

SanfordWhiteman
Level 10 - Community Moderator

Re: Email Scripting for Dynamic Content

Significant bug in date handling in that 2nd blog post. See my comment here: Get time from timestamp

I recommend http://blog.teknkl.com/tag/velocity