SOLVED

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

Go to solution
Dan_Stevens_
Level 10 - Champion Alumni

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

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" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.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" "http://www.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.

Tags (1)
1 ACCEPTED SOLUTION

Accepted Solutions
Justin_Cooperm2
Level 10

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

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!

View solution in original post

11 REPLIES 11
Anonymous
Not applicable

Re: Marketo is rewriting/omitting a significant amount of code in our responsive emails withint he HEAD area

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
Dan_Stevens_
Level 10 - Champion Alumni

Re: Marketo is rewriting/omitting a significant amount of code in our responsive emails withint he HEAD area

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.
Anonymous
Not applicable

Re: Marketo is rewriting/omitting a significant amount of code in our responsive emails withint he HEAD area

Sorry that didn't work Dan. Let me know if you find another solution!
Dan_Stevens_
Level 10 - Champion Alumni

Re: Marketo is rewriting/omitting a significant amount of code in our responsive emails withint he HEAD area

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.
Anonymous
Not applicable

Re: Marketo is rewriting/omitting a significant amount of code in our responsive emails withint he HEAD area

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_
Level 10 - Champion Alumni

Re: Marketo is rewriting/omitting a significant amount of code in our responsive emails withint he HEAD area

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).
Justin_Cooperm2
Level 10

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

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_
Level 10 - Champion Alumni

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

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.

Grégoire_Miche2
Level 10

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

Hi Justin Cooperman,

Is this working for everyone or do we still need to have it enabled on our instance ?

-Greg