How to embed assets directly in an email

Last updated at:

You will learn

Learn what types of features can be embedded in an email, how to avoid deliverability issues caused by embedding unsupported content, and creating a positive experience for your email recipients. 

Most major email clients (such as Gmail) view embedded content such as surveys, forms, videos, and other widgets as a security threat. These email clients will often strip out this embedded code completely and your recipients will not see your content feature rendered when they open your email.

Klaviyo is committed to setting our customers up for success regarding email template creation and sending beautiful, responsive emails. Because our testing shows that these types of features do not reliably render across all major email clients, we don't support embedded surveys, forms, videos, or widgets inside of Klaviyo emails.

That said, there are a few ways around this where you can ensure good deliverability and still engage customers. 

Use a static image with a play button

This is by far the most common and recommended way to feature a video in emails is to link an image to a hosted version of your video. 

  1. Take a screenshot or create a static image of your video with the play button included.
  2. Add an image block to your email.
  3. Add a link to the hosted video.
  4. Preview the email to ensure it works as expected.

An image with a play button

Add a GIF

Animated GIFs will work in emails as long as they are less than 5MB in size. You can upload a GIF, just as you would upload a JPEG or PNG, by dragging it into your email template. In some cases, you may want to link a shorter GIF out to hosted video content.  

A gif in Klaviyo's email editor

Other file types

If you’d like to share another file type through an email (e.g. a PDF, mp3, or other resource), you’ll need to host the file outside of Klaviyo, then link to it in your email. You may be able to host the file on your website platform, or you can use a file hosting service like Google Drive or Dropbox.

Once you’ve hosted your file, copy the URL where it is hosted (or the sharing link, if you’ve used a tool like Dropbox). In your template, drag in a button block, and paste the URL into the button block’s Link URL field.

Using buttons to gather information

Additionally, if you want to gather information from a single click, like product preference, you can use button blocks to gather information about your subscribers. For more information, head to the article How to use buttons to collect information about your recipients.

Additional resources

Was this article helpful?
205 out of 331 found this helpful