Can't link to anchors from emails | Community
Skip to main content
April 14, 2016
Question

Can't link to anchors from emails

  • April 14, 2016
  • 1 reply
  • 8449 views

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:  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=eyJpIjoiT0RRMFlURmlPRGd4WTJZeSIsInQiOiJpQ0lhNUp5ellZeFlZZE5Rd0NqQjY2T1wvMEhybmlLVEVBVm5BTVZ3WUNWa1pXR2xxMVlsb3BEeE1DcCtSQjJCYnJLNWJ1bmtzRFV1MnNXUTU2dllWVXc9PSJ9

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=eyJpIjoiT0RRMFlURmlPRGd4WTJZeSIsInQiOiJpQ0lhNUp5ellZeFlZZE5Rd0NqQjY2T1wvMEhybmlLVEVBVm5BTVZ3WUNWa1pXR2xxMVlsb3BEeE1DcCtSQjJCYnJLNWJ1bmtzRFV1MnNXUTU2dllWVXc9PSJ9#someSection

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

Many thanks!

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

Nicholas_Manojl
New Participant
April 14, 2016

Easy one:

Uncheck the bottom two boxes.

But in my experience not all email clients will respect the anchor links.

Justin_Cooperm2
New Participant
April 14, 2016

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