Skip to main content

Insert the “If you cannot view”

Premise​

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

Objective​

To explain how to insert the online_version_url code into the email body, allowing recipients to open the message content in a browser, and to describe the advantages of this procedure compared with publishing a static version of the page.

Procedure​

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

${online_version_url}$

The code can be inserted anywhere in the message body, both in HTML and plain text. It is usually placed at the top.

Example:

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

This dynamic variable creates a link that allows recipients to view the web version of the email. It improves the user experience and supports an effective marketing strategy without requiring a static HTML document to be published online.

To hide parts of the code from the online version, such as the link that opens the online version, use the following syntax in the HTML:

<!-- init:ecovu-->

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

<!--end:ecovu-->

Everything between the ecovu tags is not displayed in the online version.

Advantages over a Static Page​

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

  • The dynamic code preserves personalization.
    For example, an email may contain the text: “Dear ${firstname}$.” When the recipient selects the link generated by ${online_version_url}$, the ${firstname}$ variable is automatically replaced with the recipient's name, preserving the personalization.

  • The dynamic code preserves statistical tracking.
    Clicks on links in the page are tracked as if they had been selected from a webmail service or email client.