Using multiple segments in dynamic content

_SANDBOX__Mered
Level 1

Using multiple segments in dynamic content

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!

4 REPLIES 4
SanfordWhiteman
Level 10 - Community Moderator

Re: Using multiple segments in dynamic content

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

Re: Using multiple segments in dynamic content

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

SanfordWhiteman
Level 10 - Community Moderator

Re: Using multiple segments in dynamic content

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

SanfordWhiteman
Level 10 - Community Moderator

Re: Using multiple segments in dynamic content

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.