If your embed codes were generated before 2012, you’ll want to refresh them to keep your videos looking sharp.
Have a Wistia video embedded on your website with a player that no longer shows up? Does it look like this in code?
<object id="wistia_66057" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="460" height="247" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="wmode" value="opaque" /><param name="flashvars" value="playButtonVisible=true&unbufferedSeek=true&controlsVisibleOnLoad=false&autoPlay=false&videoUrl=http://embed.wistia.com/deliveries/0248b3a9024a12ea54b36861b174d032d86b8b36.bin&stillUrl=http://embed.wistia.com/deliveries/fdf3838c9663c3de575e5feadcf7a2605b818a75.bin&embedServiceURL=http://distillery.wistia.com/x&accountKey=wistia-production_97&mediaID=wistia-production_66057&mediaDuration=110" /><param name="src" value="http://embed.wistia.com/flash/embed_player_v1.1.swf" /><embed id="wistia_66057" type="application/x-shockwave-flash" width="460" height="247" src="http://embed.wistia.com/flash/embed_player_v1.1.swf" flashvars="playButtonVisible=true&unbufferedSeek=true&controlsVisibleOnLoad=false&autoPlay=false&videoUrl=http://embed.wistia.com/deliveries/0248b3a9024a12ea54b36861b174d032d86b8b36.bin&stillUrl=http://embed.wistia.com/deliveries/fdf3838c9663c3de575e5feadcf7a2605b818a75.bin&embedServiceURL=http://distillery.wistia.com/x&accountKey=wistia-production_97&mediaID=wistia-production_66057&mediaDuration=110" wmode="opaque" allowscriptaccess="always" allowfullscreen="true"></embed></object>
That embed code is 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!
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:
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:
- If you received an email from firstname.lastname@example.org 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 👇.
- 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.
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.
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@example.com.
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>
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.