Skip to main content
Mindy_Dolan
Level 1
March 21, 2018
Question

Token name for email asset

  • March 21, 2018
  • 2 replies
  • 3989 views

What token would I use to insert the name of the email asset? I want to insert it for the utm_content so that we are tracking it in GA.

Example: "EMAIL-2018-03-12 Market Update" -- what is this token called? I've tried {{campaign.Name}} but that doesn't work. I'm already using {{program.Name}} from the high-level program. I want to be able to automatically pull in the specific email name into the utm string.

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

2 replies

Dan_Stevens_
Level 10
March 21, 2018

This is not possible (unless you manually create a program token of each email name within each of your programs).  Vote here:

SanfordWhiteman
Level 10
March 21, 2018

What token would I use to insert the name of the email asset? I want to insert it for the utm_content so that we are tracking it in GA.

Insert it where, though?

In links in the email is the only place it would make sense.

There, you can use a Velocity token and use the numeric email ID -- which is a much better thing to use since (a) do you really want the email name exposed to the end user and (b) it's unlikely the email name is a URL-safe string, so it would have to be escaped anyway.

Dan_Stevens_
Level 10
March 21, 2018

Sandy, would you need to know the ID of the email and hard-code it in the script; or is there a way to programmatically include the ID of the email to include in email links?

SanfordWhiteman
Level 10
March 21, 2018

Oh, you can read it dynamically from Velocity.