Skip to main content

Insert the “If you cannot view”

Premise

${online_version_url}$ is a dynamic placeholder primarily used in emails and marketing campaigns to generate a link that points to the customized online version of an email or message. This placeholder is replaced by an actual URL when the email is sent or viewed.

Objective

To know how to insert the "online_version_url" code into the body of the email, allowing users to open the message content in a browser and understand the advantages of this procedure compared to publishing a static version of the page.

Procedure

The online_version_url code has the same syntax as all other dynamic codes in Contactlab:

${online_version_url}$

It can be inserted anywhere in the body of the message (both HTML and plain text). It is usually placed at the top.

Example

  • HTML: If you cannot view the message correctly, <a href="${online_version_url}$">click here</a>.
  • Plain text: Your mailbox does not support HTML. To view the message, click on: ${online_version_url}$.

This dynamic variable creates a link that allows recipients to view a web version of the email. This element is essential for ensuring a better user experience and an effective marketing strategy without the need to publish any static HTML document online.

If you do not want to show parts of the code in the online version (for example, the same link that leads to it), you can simply use the following syntax in the HTML:


<!-- init:ecovu-->

Display issues? <a href="${online_version_url}$">click here</a>

<!--end:ecovu-->

Everything included between the ecovu tags will not be displayed in the online version.

Advantages over a Static Page

Using the dynamic code ${online_version_url} offers significant advantages compared to publishing a static web page with a simple link:

  • The dynamic code maintains customizations.

    Suppose we have an email with the text: "Dear ${firstname}$." When the user clicks the link generated by ${online_version_url}$, the variable ${firstname}$ will be automatically replaced with the recipient's name, preserving the personalization.

  • The dynamic code maintains statistical tracking.

    Clicks on the links in the page will be tracked as if they were clicked from a webmail or email program.