3 Replies Latest reply on Dec 11, 2017 10:23 PM by Sanford Whiteman

    Marketo Tokens in Email Templates - How to Hard Code a Date

    Liz Davalos

      This is a weird, but frustrating issue. Marketo tokens with velocity scripts don't work if they are plugged into an email template rather than the Email Editor. I wanted to hard code a send date for my UTM tags since otherwise everyone seems to either not set it or come up with some random date format. Normal, non-custom tokens seems to work just fine, but not ones based on a script.


      Token: {{my.YYMMDD}}

      Velocity Script: $date.get('yy_M_d')

      Works if added in Email Editor 2.0

      Does not work if put into email template (it changes in the url string to ${my.vYYMMDD_1})


      I'm wondering if anyone knows a way around this? Some way to format the {{system.date}} to be Google UTM friendly (no spaces).