Skip to main content
_SANDBOX__Mered
Level 1
August 16, 2016
Question

Using multiple segments in dynamic content

  • August 16, 2016
  • 2 replies
  • 2732 views

Hi,

I have an email footer which uses a snippet.  It contains a CTA button.  The footer snippet is dynamic and using a segment (segment 1). 

In addition, I'd also like to segment the CTA button in the snippet using a separate segment (segment 2).

So i have segment 1 and segment 2.

Is it possible to use multiple segments in a snippet?  I'm thinking you cannot.

What other alternatives are there aside from cloning the email and updating the CTA button to achieve the desired outcome?

thanks!

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

2 replies

SanfordWhiteman
Level 10
August 17, 2016

You can only use a static {{my.token}} inside a segmented/dynamic snippet AFAIK, not a dynamic script {{my.token}} nor another dynamic snippet.

But I would think about dropping dynamic snippets entirely and replacing them with email scripts.  The scripting environment is aware of segment membership as well, so you can have outer HTML segmented by Segment 1 and then inner HTML (like a button) segmented by Segment 2.

Of course, depends on how you like to build/maintain HTML blocks.  I'm partial to scripting... and getting more so every day.

_SANDBOX__Mered
Level 1
August 17, 2016

Thanks Sanford.  When you refer to email scripts are you referring to velocity scripting?  

SanfordWhiteman
Level 10
August 17, 2016

Yes.  Email scripts = Velocity scripts = VTL scripts = script tokens = dynamic tokens.

SanfordWhiteman
Level 10
August 17, 2016

P.S. There's a tricky way to combine static tokens, dynamic tokens, and dynamic snippets to get this done, but I believe you'll be (relatively) happier migrating to dynamic tokens only.