In our last post we took a closer look at Reaching All Audiences. Now it’s time to take a closer look at Onsite Use of Videos – best practices for posting and sharing videos on your site and how to get accredited for YouTube video in SERP’s.
While YouTube is a great way to host your videos, and as exhausted in previous posts, there are many benefits to selecting YouTube over some of the other options. However, the critical problem of accreditation of published content cannot be handled on YouTube alone. Yes, you can have a branded channel, and loyal subscribers, and a massive viewership, but who published the content? Who gets accredited for the content in the SERP’s?
This is why having a YouTube channel is not enough, you must follow a specific set of steps to gain accreditation for videos in the SERP’s that can drive qualified traffic to your website, not just your YouTube channel.
- Select code to customize your video embeds experience for your clients.
Why It Works
- Customized embed options give you limitless control of how video is displayed and offered to site visitors.
How To Do It
- Select features you wish to implement and embed video with code “a la carte”.
- Improved video performance. Views. Index inclusion of videos.
When embedding a video, you have many options including: embed a video or the entire playlist; video size, show related videos or not, play automatically or on click, add captions or not, or you can even prevent your video from being embedded at all. Here’s a run down on all the options:
After adding a video to YouTube, here’s how to find the embed code and embed the video to your site:
- Click the Share link under the video.
- Click the Embed link.
- Copy the code provided in the expanded box.
- Paste the code into your blog or website.
If you want to embed an entire playlist instead, here’s how:
- Click Playlists on the left side of your YouTube page
- Click the playlist title you’d like to embed.
- Click the Share link.
- Click the Embed link.
- Copy the embed code that appears in the menu below.
- Paste the code into your website or blog.
Standard Embed Code:
Before we consider all the options, let’s take a look at the standard embed code:
<iframe width="560" height="315" src="//www.youtube.com/embed/p3qgTPm_KA0" frameborder="0" allowfullscreen></iframe>
Note the elements that are immediately editable:
- The width and height of the video to embed.
- The unique video code (tells the player which video to play)
- The frameborder. In most cases this will be “0” however your site design may call for a boarder.
- “allowfullscreen” is a standard part of the code, and in most cases will be appropriate to keep active in the embed code.
Now let’s consider a few of the options for embedding YouTube videos:
Prevent “Related Videos” From Displaying At The End Of Your Video
This is an extremely important step. Many competitors will target your videos (if they are popular) or produce videos that are similar in content to yours, and therefore match the YouTube algorithm criteria for a “related video”. To prevent these, and other videos from automatically displaying at the end of your video playing you must take action to prevent related videos from playing. This can be done by either manually adding “?rel=0” to the video embed code. The embed code would look something like this:
<iframe width="560" height="315" src="//www.youtube.com/embed/p3qgTPm_KA0?rel=0" frameborder="0" allowfullscreen></iframe>
This can be added manually, or by de-selecting the “show suggested videos when the video finishes” option directly below the embed code.
If Your Site Is HTTPS
HTTPS (Hypertext Transfer Protocol Secure) adds a layer of protection around information traveling between your computer and a web server.
Websites that use HTTPS might generate a “mixed content” warning if a video isn’t embedded with HTTPS since not all parts on the webpage are secure, which is why you might select the “Use HTTPS” option under the embed code.
Enable Privacy-Enhanced Mode
Enabling this option means that YouTube won’t store information about visitors on your web page unless they play the video.
Use Old Embed Code
There are two styles of embed codes that are available for YouTube videos.
- New embed code: This code begins with “<iframe…” and supports both Flash and HTML5 video
- Old embed code: This code begins with “<object…” and only support Flash.
Some sites only support the old embed code, so if a site rejects the new embed code, check the Use old embed code option under the embed code, which will generate a code that begins with “<object…”
Make A Video Autoplay
To make an embedded video autoplay, add “
&autoplay=1” to the video’s embed code, right after the video ID (the series of letters that follows “v/”).
Here’s an example:
<object height="350" width="425"><param name="movie" value="http://www.youtube.com/v/OdT9z-JjtJk&autoplay=1" />
<embed height="350" src="http://www.youtube.com/v/OdT9z-JjtJk&autoplay=1" type="application/x-shockwave-flash"
Start A Video At A Specific Time
Add “#t=” to a video’s embed code, followed by the time at which you’d like the video to begin playing.
For example, if you want a video to start at 2 minutes and 30 seconds into the video, your embed code would look something like the following:
<iframe allowfullscreen="" frameborder="0" height="315" src="http://www.youtube.com/embed/UkWd0azv3fQ#t=2m30s" width="420"></iframe>
Add Captions To An Embed Video
Make captions automatically appear for an embedded video by adding “&cc_load_policy=1” to the video’s embed code.
You can also choose a caption language for the embedded video. To specify the caption language for the video that you’d like to embed, just add “
&cc_lang_pref=fr&cc_load_policy=1” to the video’s embed code.
- “cc_lang_pref” sets the language for the captions shown in the video.
- “cc_load_policy=1” turns captions on by default.
- “fr” represents the language code for French. You can look up 2-letter language codes in the ISO 639-1 standard.
If you’ve uploaded a video and do not want to allow others to embed your video on external sites, here’s how to disable the option:
- Visit your Video Manager.
- Find the video you’d like to change and click Edit.
- Click Advanced Settings under the video.
- Uncheck the Allow Embedding checkbox under the “Distribution Options” section.
- Click Save changes at the bottom of the page.
Add Link To YouTube Video Description
Remember to add a link to your newly created video embed page at the beginning of your YouTube description. Include the http:// to the link so that search engines can find its permanent page.
In our next post we’ll take a closer look at Making Onsite Video Search Engine Friendly with the use of video transcripts, semantic markup, and XML site-maps etc.
Post Script: Parts of this content originally appeared on the YouTube Playbook – We have included it these sections here as part of this series because we believe it is relevant and adds value to this series, and this series adds value to the playbook. It is not intended to indicate that we are the original author of all of the content displayed here…. So, yeah, Google please don’t sue me. That’d be swell! Thanks.