SOLVED

Re: Tokens Inside of a Token (nesting tokens)

Go to solution
Mikes_Jones
Level 8

Is this not possible?

I have footer links on each landing page, the footer links are deployed via a token {{my.footer-links}}, which contains 3 links.

I went inside the {{my.footer-links}} token (rich text), and tried to edit the HTML of one of the links by adding this: ?utm_medium={{my.utm_medium}}&utm_source={{my.utm_source}}&utm_campaign={{my.utm_campaign}}

Unfortunately, the {{my.utm_medium}}, {{my.utm_campaign}} and {{my.utm_source}} are not being populated

Thanks.

Tags (1)
1 ACCEPTED SOLUTION
Josh_Hill13
Level 10 - Champion Alumni

You cannot do this

View solution in original post

12 REPLIES 12
Anonymous
Not applicable

You can add variables defined in script token to program tokens. For instance like that:

2016-02-17 15_56_21-Marketo _ INT - Programs (My Tokens) • Marketing Activities.jpg

And then we have a script token in a folder above that defines $footeraddress:

#set($footeraddress = "Our Company @ our address")

Dan_Stevens_
Level 10 - Champion Alumni

We use snippets for our country-specific footers. This enables us to do exactly what you want to do (we use tokens within our snippets). ​

Mikes_Jones
Level 8

Didn't even think about that! Thanks Dan Stevens​ , will take a look at that shortly.

Josh_Hill13
Level 10 - Champion Alumni

You cannot do this

Melanie_Arnold
Level 2

Hi Josh - what about program tokens inside of a calendar file token? I've found that this works, but not consistently. Any tips?

Nicholas_Manojl
Level 9

These are the exception - they work in the body of the calendar file - and they're a great place to put the {{member.webinar url}} token.

Melanie_Arnold
Level 2

Thanks Nicholas - have you come across any inconsistencies with the token value displaying? I love the idea, but feel like I can't trust them. Also - do they not work in the subject of the calendar token?

Nicholas_Manojl
Level 9

It's quite a fiddly field, and it takes a bit of mental arithmetic to get it to work when testing. IE, it will only work when testing if someone is a legitimate member of the program etc.

Dan_Stevens_
Level 10 - Champion Alumni

Tokens do not work in the subject of a calendar token.

Leticia_Rodrig1
Level 1

This made me LOL. But now I'm sad we can't make this work.

Anonymous
Not applicable

I was totally referencing a popular presentation on Marketo Tokens. I wish I could claim that one. I busted out when I heard that the first time as well. ; )

Dan's comment below is the way to go.

Anonymous
Not applicable

This isn't Inception. LOL! ; )