Email Scripting for Dynamic Content | Community
Skip to main content
September 8, 2016
Question

Email Scripting for Dynamic Content

  • September 8, 2016
  • 3 replies
  • 3090 views

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?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

3 replies

Grégoire_Miche2
Level 10
September 8, 2016

Hi Olivia,

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

Some examples are provided.

-Greg

SanfordWhiteman
Level 10
September 8, 2016

You can do this one of two ways:

1. Rephrase the segment qualification Smart Lists within Velocity:

2. Use the segments themselves directly:

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 6
September 9, 2016

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
September 10, 2016

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

I recommend blog.teknkl.com/tag/velocity