All Collections
Embedding and Sharing
Keeping Your Embeds Up To Date
Keeping Your Embeds Up To Date

Are your Wistia embeds using an old version of the Wistia JS library? Keep your embeds fresh with the latest Wistia player technology.

Caroline F avatar
Written by Caroline F
Updated over a week ago

If your embed codes were generated before 2012, you’ll want to refresh them to keep your videos looking sharp.

Updating embeds created before 2012

Have a Wistia video embedded on your website with a player that no longer shows up?

It could be an embed code from back in the good ol' days. Ben used to type those by hand and email them to some of our first customers. Nice work, Ben!

ben talking

If you have a video on your website that looks like the one above (and an embed code to match), your video will stop generating stats on December 10th, 2015 to make way for new & improved stats functionality. But fear not, your videos' historical stats will always be available, and you can continue generating new stats by updating your embed codes. Here’s how:

Step 1. Identify the embeds you need to update.

If you only have a few Wistia videos embedded, you may know which videos they are already just by looking at them.

If you don’t know which videos to update off the top of your head, there are a few things you can do:

  1. If you received an email from [email protected] with the subject “[Action needed] An Important Update About Your Wistia Embeds,” check out the attachment in that email. The attached list should include most (if not all) of your affected embeds. Didn’t receive such an email? No worries! There’s another way to find the embeds 👇.

  2. Go to the Trends section in your account (found under the Stats menu), and check to see which of your Wistia videos have been played recently. When you click into the stats page for a specific video, you can export the video’s stats to a CSV file which will include the URLs of all the pages the video is embedded on. Here’s a guide with more info on how to get that data: Exporting Analytics Data. Once you have those URLs, you can check them to see if the embed code is outdated – that is, if it looks like the video at the top of this page.

Step 2. Generate new embed codes.

On each page with an old embed code, you will need to replace the existing embed code with a new embed code for that video from your Wistia account. Find each video in your account, and then generate an embed code for each one. Once those new embed codes are on your website, your videos will all be ready to go.

Step 3. Celebrate! Or, contact us and then celebrate shortly thereafter.

If you were able to get those embeds updated without much trouble, there’s nothing left to do but dance. Your videos are now ready for the wonderful functionality that the future will hold.

If things didn’t go smoothly though, please let us know. We’re ready to help at [email protected].

Keeping E-v1.js up to date

E-v1.js is the Wistia Javascript library. It’s responsible for pretty much everything Wistia can do on a website, from building the player, to playing a media, to sending stats back to your Wistia account.

It’s important to keep the Wistia Javascript library up to date. Our engineering team frequently updates it to ensure that embeds function properly when other things change (for instance, when Google releases an update to the Chrome web browser with an impact on video functionality). Sometimes things within Wistia change too, and E-v1.js must be updated to continue working properly with the rest of the Wistia product. December 10th, 2015 is one of those times.

If you need your videos to continue generating new stats after December 10th, 2015, your videos must use the up to date version of E-v1.js.

Normally, E-v1.js is automatically kept up to date within 60 seconds. If your embed codes use a version of E-v1.js that isn’t hosted by Wistia though (like if you made a copy of it and are hosting it yourself), then that version of E-v1.js will become out of date as soon as the Wistia engineering team releases updates and improvements to it, which happens daily.

The change we’re making on December 10th will not be compatible with old versions of E-v1.js, so you’ll need to switch to the Wistia-hosted version. You can do that by replacing your existing copy of E-v1.js with this:

<script charset="ISO-8859-1" src="//fast.wistia.com/assets/external/E-v1.js"></script>

Tip

If you want to load E-v1.js asynchronously, be sure to include async at the end of that opening script tag.

You can always just replace your existing embed code with a new embed code from Wistia, too. It’ll include the Wistia-hosted E-v1.js automatically.

If you have any questions about this, or have any difficulty with the transition and need assistance, please contact us at [email protected]. We’re here to help!

Did this answer your question?