Can I specify Token values at an email level | Community
Skip to main content
Jo_Pitts1
Community Manager
August 28, 2019
Solved

Can I specify Token values at an email level

  • August 28, 2019
  • 1 reply
  • 2949 views

Hi there.

I have the following situation, and feel I'm missing something staggeringly obvious.

I have a snippet used across multiple emails that specifies a header image and URL based on the recipients declared geography.

I want to do UTM tracking on clicks in this image. 

It struck me the smart thing to do was create a token {{my.utm_campaign}} and set the value for each email.

This is where I seem to be missing something:  I can set up a token for UTM Campaign at a program level, but that means I have to have each email in a separate program. 

Surely I can set the token value at an email level, and am just missing something incredibly obvious here?

Cheers

Jo

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

You're not really missing anything. There aren't individual email-level tokens. Closest way to approximate this is to have a single Velocity token with values for each email ID:

#set( $utmPerEmail = {
"1012" : "fashion-layout",
"1023" : "gartner-new",
"1048" : "pusha-t-endorsement"
} )‍‍‍‍

Then have it output only the value that matches the current ID (code for getting the ID found elsewhere in my blog).

1 reply

SanfordWhiteman
SanfordWhitemanAccepted solution
New Participant
August 28, 2019

You're not really missing anything. There aren't individual email-level tokens. Closest way to approximate this is to have a single Velocity token with values for each email ID:

#set( $utmPerEmail = {
"1012" : "fashion-layout",
"1023" : "gartner-new",
"1048" : "pusha-t-endorsement"
} )‍‍‍‍

Then have it output only the value that matches the current ID (code for getting the ID found elsewhere in my blog).

Jo_Pitts1
Jo_Pitts1Author
Community Manager
August 28, 2019

@Sanford Whiteman‌,

thanks for that excellent (as usual) answer.

The obvious follow-on question, SHOULD we be able to set email level tokens (clearly mostly useful if you are using them with snippets).

Cheers

Jo

SanfordWhiteman
New Participant
August 29, 2019

I think {{email.tokens}} that draw from tags or other email-level metadata would be part of an MA platform, were I to build one.