I found this script to detect if a video is watched to the end by the user: https://gist.github.com/foliovision/2c266598333ecbd1f151
It was created two years ago. So I wonder if it still can be used. And if it can, where should I put it?
I tried to insert it on the page where the video is embedded and trigger an alert instead of an Ajax call to check if it works, but it doesn’t.
Could you please provide some help.