Can't link to anchors from emails

Anonymous
Not applicable

Apologies if this has been covered somewhere and I can't find it.  I am trying to add a link in a Marketo email that looks like this:  http://www.foo.com/page.html#someSection

My obvious intention is that the link will go to page.html and skip down to the paragraph id called #someSection.

But when I add this from the marketo email, marketo appends a long query string to the end of the url like this:

http://www.foo.com/page.html#someSection?mkt_tok=eyJpIjoiT0RRMFlURmlPRGd4WTJZeSIsInQiOiJpQ0lhNUp5ell...

This breaks the anchor tag and the scrolling I'm looking for doesn't happen.  The reason is that anchor tags should go after query strings, like this:

http://www.foo.com/page.html?mkt_tok=eyJpIjoiT0RRMFlURmlPRGd4WTJZeSIsInQiOiJpQ0lhNUp5ellZeFlZZE5Rd0N...

I'm certain there must be some workaround for this.  Help is appreciated.

Many thanks!

24 REPLIES 24
Stijn_Heijthuij
Level 7

To confirm; if you add the ?mkt_tok= query parameter, Marketo will still add in the same query parameter somewhere else in the URL?

i.e.

www.google.com/?q=myquestion#answer1?mkt_tok=123

turns into

www.google.com/?q=myquestion?mkt_tok=123#answer1?mkt_tok=123

SanfordWhiteman
Level 10 - Community Moderator

Yes, it will be redundantly added if you don't turn off mkt_tok formally.

I would use my other method anyway.  Too much confusion if some emails track clicks and others don't.

Justin_Cooperm2
Level 10

yes

Justin_Cooperm2
Level 10

Just uncheck "include mkt_tok" no need to make it untracked