Adding a "view in browser" link

Adding a "view in browser" link

If you have an image-heavy email, worry about display issues in specific email applications, or simply want to give your customers the option to view your email in the browser rather than just their inbox, you can add a link that generates a web version of the email personalized for each recipient.

How do I add a view in browser link into a custom layout?

To add the default view in browser link (similar to the unsubscribe one we talked about here), you can use the following HTML code in your layout:

<a href="{% view_in_browser_url %}">View this email online</a> 

The resulting link will look something like:

If you want to exclude the online view link from your open and click reports, you can add the untracked class to it:

<a href="{% view_in_browser_url %}" class="untracked">View this email online</a>

How do I brand my link?

Like all other links, your View in browser links can be branded with your own domain. To get this set up, you'll need to add a CNAME to your domain's DNS records. Just visit the "Deliverability" tab in the "Email & Actions" section of your account and make sure the CNAME value you configure there has been added to your domain's DNS records and then re-checked on that page. If you see a green checkmark under the CNAME column for your domain, you're all set!

Was this article helpful?