Marketo is rewriting/omitting a significant amount of code in our responsive emails within the HEAD area | Community
Skip to main content
Dan_Stevens_
New Participant
March 1, 2015
Solved

Marketo is rewriting/omitting a significant amount of code in our responsive emails within the HEAD area

  • March 1, 2015
  • 7 replies
  • 4945 views

Has anyone been able to figure out how to prevent Marketo from modifying the code within email templates - specifically code within the HEAD area?  We had a series of custom, responsive email templates designed for us.  But none of them work properly across all major email clients since Marketo is stripping out necessary code that's used to properly render the emails in specific email clients (especially Outlook and mobile devices).  Here are a few instances of Marketo completely rewriting the code or omitting it all together:

Our template:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="w3.org/1999/xhtml"
xmlns:v="urn:schemas-microsoft-com:vml"
xmlns:o="urn:schemas-microsoft-com:office:office">
<head>

Marketo rewrite:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "w3.org/TR/html4/loose.dtd">
<html>
<head>

Our template:
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<!--[if gte mso 9]><xml>
  <o:OfficeDocumentSettings>
    <o:AllowPNG/>
    <o:PixelsPerInch>96</o:PixelsPerInch>
  </o:OfficeDocumentSettings>
</xml><![endif]-->

Marketo rewrite: completely stripped out.  Basically, Marketo is stripping out any conditional code that starts with "<!--[if gte mso 9]>"

I think this is yet another example on why there is a need for a more robust and capable email editor in Marketo.

Best answer by Justin_Cooperm2

This has been resolved now and the fix can be enabled for subscriptions ad-hoc. Please see the idea Dan mentioned above for more details. Email me directly at jcooperman@marketo.com if you'd like this enabled.

Happy Marketing!

7 replies

Justin_Cooperm2
Justin_Cooperm2Accepted solution
New Participant
October 14, 2015

This has been resolved now and the fix can be enabled for subscriptions ad-hoc. Please see the idea Dan mentioned above for more details. Email me directly at jcooperman@marketo.com if you'd like this enabled.

Happy Marketing!

Dan_Stevens_
New Participant
October 14, 2015

I just finished testing... AND IT WORKS!!!!  Thanks so much, Justin!  BTW, it's not just the DOCTYPE that caused the issues, but Marketo was also stripping the xmlns definitions within the <HTML> tag, just after the DOCTYPE.  These critical three lines of code are now also being preserved.

Dan_Stevens_
New Participant
March 17, 2015
So far, not yet.  You can vote on this idea: https://community.marketo.com/MarketoIdeaDetail?id=08750000000KIxJAAW

BTW, this is the workaround for fixing the Windows scaling issue with responsive emails in Outlook. Unfortunately, Marketo is stripping this out (or rewriting it with its own code).
March 17, 2015
Does that mean it is not possible to use these conditional statements for our outlook specific responsive email campaigns? Is there a work around?

Thanks ~
Dan_Stevens_
New Participant
March 12, 2015
Here is the response I received from Marketo after opening a support ticket with them:
These 2 items are both expected behavior on our end.

For condition statements, you may vote the for the idea here as well as other places (there are many Ideas out there on this piece alone): https://community.marketo.com/MarketoIdeaDetail?id=08750000000J2oFAAS

Conditional statements are on our radar as of now. I don't have an ETA as to when this will be rolled out as an enhancement, but it should probably be within the next few releases.

For xml, I don't believe there is an Idea for this yet, however, please feel free to file one.
March 8, 2015
Sorry that didn't work Dan. Let me know if you find another solution!
Dan_Stevens_
New Participant
March 7, 2015
Hi Brody - thanks for the suggestion.  However, I just tried this and it didn't work.  Marketo completely ignored the tokens within the HTML code and overwrote with their own code.
March 3, 2015
Hi there, Marketo seems to see these conditional statements as comments that it should remove. There's not a lot you can do about it - one idea is to put the code blocks into My Tokens, which should then be processed after Marketo 'cleans' the template. Brody