With the Youtube editing tools you can easily set up a video annotation with a link that goes to your website, but what if you want to link an annotation to a social media page like Facebook, Twitter, Tumblr or another social media website? Before we can create a redirect link from our website, we first need to setup the Youtube channel with the associated website.
Add associated website
Go to Youtube.com and login to your channel. On the top right of the page click on your avatar icon and click on Creator studio.
In the left sidebar click on Channel and then on Advanced to go to the advanced settings page. On this page you can link your channel associated website. Click on the Add button, after that the page saves the setting. Now click on the blue verify link below it.
Verify associated website
Follow the steps on this page. Download the HTML file and upload it to the root folder of your website, then tick the “I’m not a robot” box and click on Verify.
When your website if verified, it should show up as the image below with a green dot to the right of it saying “Success” next to it.
Now you use video link annotations that go to your website.
Setting up the redirect (script)
If you want to use for example website.com/facebook, make a new folder in your website root folder named “facebook”. In this make a .php file with Notepad for example. Just make sure you save the file as “index.php” and place the file in the newly created “facebook” folder. Now copy and paste the code below to this file and save it in your website.com/facebook folder and replace my with the link that you want the annotation link to redirect to. The link below for example redirect the user to my Facebook page (https://www.facebook.com/mennovanderkrift).
<?php header("location: http://www.mennovanderkrift.com/facebook"); ?>
Now if the user clicks on the www.mennovanderkrift.com/facebook link that page will redirect the user to www.facebook.com/mennovanderkrift.
Setting up the redirect (WordPress)
If you have a WordPress website, these links are a little more manageable by installing a plugin called Pretty Link Lite. After installing and activating the Pretty Link Lite plugin, click on the Pretty Link settings in the WordPress meu to the left. Now click on Add a pretty Link to add your link. In the Add Link screen, in the Target URL field type in the URL where you want you wat to send the user to, and type in link at Pretty Link for the link that you want to use for the Youtube video annotation link and click on Create to save the Pretty Link.
Basically this means that if a user clicks on the Pretty Link they will be send to the Target URL. So we can use the Pretty Link as a video annotation link on Youtube.