E-mail Marketing (ESP)
David Addison
by David Addison
share this
?fl
« Back to the Blog

Konvey Merge Codes

10/17/2016

Konvey.com merge code examples (Updated 5/5/2017):

  • HTML-Encoded Expression
    {%contact.emailaddress%}
    
  • Unsubscribe Link
    {%Merge.Unsubscribe()%}
    
  • Non-HTML-Encoded Expression
    Only use this merge type if the data field contains HTML and if you DO NOT want the merge engine to HTML Encode the data pulled from the database. Double percent signs work with any merge code.
    {%% contact.mycustomhtmlfield %%}
    
  • Snippet Expression
    {% $Color %}
    
  • Inline Snippet Declaration
    <div konvey-snippet="Color">Blue</div>
    
  • Tracked (default) Anchor Tag with Client- and Server-Side Titles
    (if no server-side title exists, the client-side title is used server-side)
    <a href="
    http://konvey.com
    " title="Konvey" konvey-title="Konvey Home Page">Konvey</a>
    
  • Untracked Anchor Tag
    <a konvey-notrack="true" href="
    http://konvey.com
    ">Konvey</a>
    
  • Anchor Tag with Placeholder URL for Pre-merge Display
    <a href="unmergedUrl" konvey-href="mergedUrl"></a>
    
  • Image Tag with Placeholder Src URL
    <img src="unmergedUrl" konvey-src="mergedUrl" />
    
  • Image Tag with Placeholder Srcset URL
    <img src="small.jpg" srcset="large.jpg 2000w" konvey-srcset="medium.jpg 1000w" />
    
  • HTML Tag with Placeholder CSS Style
    <div style="unmergedStyle" konvey-style="mergedStyle"></div>
    
  • HTML Tag with Repeater
    <div konvey-repeat="purchase in contact.purchases">{%purchase.amount%}</div>
    
  • Conditional Tag
    <div konvey-if="contact.contactid"></div>
    
  • Conditional Tag Referencing a Filter
    <div konvey-if="contact.filters.maineresidents"></div>
    
  • Switch Tag with Default Value
    <div konvey-switch="contact.state.toUpperCase()">
    <div konvey-switch-when="ME">Maine resident</div>
    <div konvey-switch-when="NH">New Hampshire resident</div>
    <div konvey-switch-default>U.S. resident</div>
    </div>
    
  • Server-Side Script Declaration
    <script type="text/konvey-script">
    /* Server-side Javascript goes here */
    </script>
    
  • CSS Stylesheet to be Inlined
    <style type="text/css" konvey-inline>
    .img-responsive { max-width: 100%;, height: auto; display: block; }
    </style>
    

Thanks!

Thank you for contacting us!

We'll be in touch!

Back Home ×