Marketo email button with dynamic link

  • This code will support Outlook and all other email clients.

  • Option to give dynamic links based on segments since the anchor tag is within the mktoText

<div>
    <!--[if mso]>
      <v:roundrect xmlns:v="urn:schemas-microsoft-com:vml" xmlns:w="urn:schemas-microsoft-com:office:word" style="min-height:40px;v-text-anchor:middle;width:260px;line-height: 25px;" arcsize="10%" strokecolor="#000099" fillcolor="#ffffff">
        <w:anchorlock/>
        <center style="color:#000099;font-family:sans-serif;font-size:16px;line-height: 25px;">
    <![endif]-->
    <div style="background-color:#ffffff; border:2px #000099 solid; border-radius:4px; color:#000099; display:block; font-family:sans-serif; font-size:16px; line-height:20px; text-align:center; text-decoration:none; width:260px; -webkit-text-size-adjust:none; mso-hide:all; padding: 10px 0px; margin: 0px auto;">
      <div class="mktoText" mktoName="CTA Button">
        <a href="#" style="color: #000099; display: inline-block;">Call to Action</a>
      </div>
    </div>
    <!--[if mso]>
      </center>
      </v:roundrect>
    <![endif]-->
</div>

- Vivek



What do we do?


We work on website development using Ruby on Rails, NodeJS, ReactJS, AngularJS. View all the services we provide here.


Say Hello! See our work