Add a test ?mkt_tok to likes with the marketo token on them | Community
Skip to main content
February 25, 2016
Duplicate

Add a test ?mkt_tok to likes with the marketo token on them

  • February 25, 2016
  • 5 replies
  • 6602 views

Some of my links from partners that I include have errors when the marketo token is added on the live version.

I don't end up seeing this on tests that are sent out but once the live version is sent the errors happen.

I am working on other work around strategies, but ideally the test emails should mirror how a recipient would actually receive something.

If there was a test token on the links with marketo tokens I think the issue would have fewer surprises.

5 replies

Grégoire_Miche2
Level 10
February 25, 2016

Hi Ryan,

If these links are URL or your partner's site, that might be linked to the CMS your partner are using. I have seen CMS (namely Sharepoint) causing some errors when an URL parameters ares appended to URLs, but not all Sharepoint sites have this issue.

-Greg

SanfordWhiteman
Level 10
February 25, 2016

Greg, I don't think you read my notes on Ryan's post yesterday -- since deleted, I think -- but I broke down what one of his partners is doing wrong.  It's a broken HTTP framework, but it's not as simple as rejecting all URL params but particular characters in URL values.  I don't think it's the same framework across the board.  Whether it is commercial/legacy or in-house code, though, it is going to be difficult for an outside consultancy to tell the web team they're broken (even though they clearly are).

Grégoire_Miche2
Level 10
February 25, 2016

Hi Sanford,

No I have not seen this post. Thx for clarifying.

And I agree, it's not an easy to manage situation

-Greg

Justin_Cooperm2
Level 10
February 29, 2016

Ryan, can you please tell me where you are seeing this issue? We actually updated "Send Sample Email" last year to ensure that links are converted to tracking links and the resulting URL should have mkt_tok appended as long as you didn't uncheck that option in the text editor.

March 1, 2016

So it is strange because it looks like there is a token on the test but again the live version has errors ex

Test - Room Booking

Live - mgmgrand.com/en/booking/room-booking.html?mkt_tok=3RkMMJWWfF9wsRoiuKjLZKXonjHpfsX56OwtWaa1lMI%2F0ER3fOvrPUfG…

Thanks!

-Ryan

Justin_Cooperm2
Level 10
March 1, 2016

If you uncheck "include mkt_tok" for that link does it work ok in both the test and live?

Justin_Cooperm2
Level 10
March 1, 2016

So, the resolution for you is to either uncheck the "include mkt_tok" option in the text editor when you're adding a link to these partner sites or if it is in the code, you can just add class="mktNoTok" to the <a> tag, which will do the same thing. This is actually why we built mktNoTok, because we've seen the presence of the mkt_tok break certain external sites.

That said, I don't understand at all why the samples would always work and the live emails always fail...I'm going to have an engineer take a look and see if they can figure out what's different about the two.

SanfordWhiteman
Level 10
March 1, 2016

Justin, read my blog post and it'll be clear.

Justin_Cooperm2
Level 10
March 1, 2016

tl;dr (I actually did read it, though) - they aren't handling encoded query string characters correctly?

SanfordWhiteman
Level 10
March 11, 2016

Hey Ryan, strangely enough a workaround for such broken URL parsers just came to me. Would these partners add a tiny JS snippet to adapt Munchkin for this scenario?

February 6, 2020
No text available