SOLVED

Anchor links in email don't function in email client

Go to solution
Highlighted
Level 10 - Champion Alumni

Anchor links in email don't function in email client

One of our marketers in France created a newsletter with anchor links at the top.  Attached is the HTML.  When viewing in a browser, everything works fine.  But not when viewing in an email client (Outlook or Gmail).  Each link is configured as not trackable.  When looking at the source code in Outlook, the links are indeed not Marketo tracking links.  Any thoughts?

pastedImage_0.png

pastedImage_1.png

pastedImage_2.png

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted

Re: Anchor links in email don't function in email client

make it <a name="ARTICLE-1"></a> and it will work

View solution in original post

4 REPLIES 4
Highlighted

Re: Anchor links in email don't function in email client

make it <a name="ARTICLE-1"></a> and it will work

View solution in original post

Highlighted

Re: Anchor links in email don't function in email client

Highlighted
Level 10 - Champion Alumni

Re: Anchor links in email don't function in email client

Thanks Justin.  I've referred to CM's compatibility checker in the past - but it's getting pretty dated.  As for the proper link construct, this is how Marketo's editor coded it.  Should we raise an bug report; or really not worthwhile since a new editor is upon us?

Highlighted

Re: Anchor links in email don't function in email client

It's not really a bug. It's more that you are experiencing the common "why are all these damn email clients different" predicament...

http://stackoverflow.com/questions/484719/html-anchors-with-name-or-id

In HTML 5, <a name="foo"></a> is not even valid. So if we did that, then we would not be future-proofing our editors. In addition, the text editor anchor logic is shared between landing pages and email, so we want to try to align to most recent standards. Of course, this doesn't mean that old/weird email clients will support the HTML5-compliant approach (as you see with Gmail). Heck, Gmail doesn't even support media queries or CSS in the <head> section of an email yet.

Perhaps we can consider adding <a id="foo" name="foo"></a> as a short-term "fix" until the clients get more modern...