Campaign and program tokens within an email script | Community
Skip to main content
Level 9
November 24, 2017
Question

Campaign and program tokens within an email script

  • November 24, 2017
  • 2 replies
  • 6212 views

Can I access campaign and program tokens from within a script? I don't see them on the right hand side panel when I load a script token, so I don't think I can, unfortunately. And you can't use a "token within a token" so I can't simply use {{campaign.name}}.

What I'd like to do is to have an email script that each time it sends, pulls the campaign/program name and populates it within a URL parameter. Eg. test.example.com/?program={{campaign.name}}

But as far as I know, this won't work in a script. Only in the HTML itself.

Any ideas?

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

2 replies

SanfordWhiteman
Level 10
November 24, 2017

There's only one way to do this and it's undocumented and kinda ridiculous. Send me an email if you want to play with it.

January 3, 2018

Hey, @Sanford Whiteman ! (Happy new year!)

Any chance you could provide me with some information on this? Looking to do this for an e-mail template I'm working on.

SanfordWhiteman
Level 10
January 3, 2018

I have your email, so I'll instructions to you... caveat marketor, as they say.

Casey_Grimes2
Level 10
November 27, 2017

Sidebar: upvote ​.