SOLVED

Email Global variables with dynamic segmentation

Go to solution
Disha_Goyal6
Level 6

Hi @SanfordWhiteman,  I’m currently working with UTM parameters and assigning values using global variables in email editor 2.0. However, the client reported an issue where this approach doesn’t work when dynamic content (segmentation) is used. After doing some research and testing, I found that global variables are indeed not compatible with dynamic content.

 

Could you please suggest a workaround or an alternative approach to address this issue?

 

1 ACCEPTED SOLUTION
SanfordWhiteman
Level 10 - Community Moderator

To use a global ${mktoVariable} in Dynamic Content:

 

  1. first output the ${mktoVariable} in-between 2 Velocity {{my.tokens}} with
    #define($mktoVariable_VTL)
    and
    #end
    respectively
  2. create a 3rd Velocity {{my.token}} that simply outputs
    ${mktoVariable_VTL}
  3. use that 3rd Velocity token in Dynamic Content

This is a very advanced use of Velocity in Marketo. Be sure you understand how Velocity scope & order-of-operations work before supporting it in a production environment.

View solution in original post

12 REPLIES 12