SOLVED

Space in token name translates to 20 in URL parameter, causes mktLogicException error

Go to solution
Robb_Barrett
Marketo Employee

Space in token name translates to 20 in URL parameter, causes mktLogicException error

We're trying to use two tokens in a URL parameter: {{lead.Email Address}} and {{company.Company Name}}

When Marketo translates the code into HTML it creates a %20 in the place of the space.  This causes a mktLogicException error when we try to send, stating "Token key not found".

In the examples I've seen online, all of the tokens have a space in the name.  How do I get this to work properly with my email?
Robb Barrett
Tags (1)
1 ACCEPTED SOLUTION

Accepted Solutions
Anonymous
Not applicable

Re: Space in token name translates to 20 in URL parameter, causes mktLogicException error

Hi Robb,

Short answer: yes

Marketo must have an associated cookie (on the prospect's browser) associated with their lead record in Marketo.  That can happen via two methods.
1) Click tracking link in email
2) Fill out Marketo form

Clicking a tracking link in email is why my above comment is important.  You promted me to create a separate thread yesterday here: https://community.marketo.com/MarketoDiscussionDetail?id=90650000000Pm26AAC

Basically, as long as a link is converted to "tracking code" then Marketo associates the cookie on the browser with that lead record. You can tell someone is cookied by looking at the activity log for their record.  You will see "clicked link in email" and then "visits webpage" activities (on pages that have the munchkin tracking code).

When someone is cookied, then Marketo will prepopulate available data into forms automatically (though you can turn it off manually if needed).

Hope that helps.

View solution in original post

6 REPLIES 6
Anonymous
Not applicable

Re: Space in token name translates to 20 in URL parameter, causes mktLogicException error

Hi Robb,
This is a current knwon bug that we are looking into.

As a work around, when editing the email, click the "HTML" button. You can then manually replace %20 with a space in your tokens and approve the email.

Will
Anonymous
Not applicable

Re: Space in token name translates to 20 in URL parameter, causes mktLogicException error

I recently did what Will suggested to get a token into a URL in one of our email campaigns, and it worked really well.
Robb_Barrett
Marketo Employee

Re: Space in token name translates to 20 in URL parameter, causes mktLogicException error

I edited the HTML about 10 times and it didn't work.  I then set the class as "Link" and it helped.  It finally worked and I'm not 100% sure why.
Robb Barrett
Anonymous
Not applicable

Re: Space in token name translates to 20 in URL parameter, causes mktLogicException error

Also note:

There is a right way and a wrong way to use a URL in a token in an email. 

When converting links into tracking code, Marketo looks for the following string to know what to convert to tracking code: 

<a href="http://

The italicised string above must be completely inside the token or in the HTML of the email.

Good URL Tokens that will render as tracking links:

Token: {{my.URL1}}
Token Value: www.marketo.com
Token in HTML of email: <a href="http://{{my.URL1}}">Marketo Token URL 1</a>

Token: {{my.URL2}}
Token Value: <a href="http://www.marketo.com">Marketo Token URL 2</a>
Token in HTML of email: {{myURL2}}


Bad URL Tokens that will only appear as links, but links will not be converted to trackable links:

Token: {{my.URL3}}
Token Value: http://www.marketo.com
Token in HTML of email: <a href="{{my.URL3}}">Marketo Token URL 3</a>


Happy Tokening!
Robb_Barrett
Marketo Employee

Re: Space in token name translates to 20 in URL parameter, causes mktLogicException error

Graham, I guss that opens up another question.  I'm new to Marketo, but not new to Marketing Automation tools. 

Does Marketo intuitively know who has clicked on a link and can Marketo pre-load data on the recipient into a form?  Do I need to build my URL with data parameters built in to pre-populate? 
Robb Barrett
Anonymous
Not applicable

Re: Space in token name translates to 20 in URL parameter, causes mktLogicException error

Hi Robb,

Short answer: yes

Marketo must have an associated cookie (on the prospect's browser) associated with their lead record in Marketo.  That can happen via two methods.
1) Click tracking link in email
2) Fill out Marketo form

Clicking a tracking link in email is why my above comment is important.  You promted me to create a separate thread yesterday here: https://community.marketo.com/MarketoDiscussionDetail?id=90650000000Pm26AAC

Basically, as long as a link is converted to "tracking code" then Marketo associates the cookie on the browser with that lead record. You can tell someone is cookied by looking at the activity log for their record.  You will see "clicked link in email" and then "visits webpage" activities (on pages that have the munchkin tracking code).

When someone is cookied, then Marketo will prepopulate available data into forms automatically (though you can turn it off manually if needed).

Hope that helps.