Campaign and program tokens within an email script | Community
Skip to main content
Level 9
Nov 24, 2017 7:46 PM UTC
Question

Campaign and program tokens within an email script

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.

10 replies

Casey_Grimes2
Level 10
Nov 27, 2017 2:00 PM UTC

Sidebar: upvote ​.

Translate
SanfordWhiteman
Level 10
Nov 24, 2017 8:19 PM UTC

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.

Translate
Jan 3, 2018 5:30 PM UTC

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.

Translate
SanfordWhiteman
Level 10
Jan 3, 2018 10:40 PM UTC

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

Translate