Get this implemented fast!
It is as simple as 1-2-3:
1. Edit code (provided in section below)
2. Paste in a HTML element
3. Publish Page
Redirect on Video Completion...
Play and wait for video to complete; it will auto-send you to next page...
Make sure to modify red highlighted fields...
<div id="ct_player_1"></div>
<script src="https://www.youtube.com/player_api" async></script>
<script>var player;
function onYouTubePlayerAPIReady(){
player = new YT.Player("ct_player_1", {
videoId: "CTYTVIDID",events: {
"onStateChange": onPlayerStateChange}});}
function onPlayerStateChange(event) {
if(event.data === 0) {
window.location = "https://ReplaceWithYourLink";}}
</script>
How to steps?
1. Replace CTYTVIDID with ID of Youtube video.
eg. if video link is https://www.youtube.com/watch?v=ju5MPwIYL5k
then your ID is ju5MPwIYL5k
2. Replace link with actual location where you want users to go.
3. Paste code in HTML element and Publish Page!