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!
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.
Thanks Sanford. When you refer to email scripts are you referring to velocity scripting?
Yes. Email scripts = Velocity scripts = VTL scripts = script tokens = dynamic tokens.
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.