While you could use this to trigger a Campaign based on the click of a button or based on an event on your web page you could also use to trigger a campaign after a video has ended. A great use case for this is when you want to ask users for feedback regarding the video that they just watched.
First, we'll need to create a campaign that uses a Manual Trigger. In another article in our Support Center we outline the steps for creating a campaign that triggers using a manual trigger:
The script uses the HTML5 Video API to check for the event that is executed when the video has ended. More information about this can be found in the MDN web docs.
Using that event the script sends out a manual trigger to Usabilla which in turn will trigger the campaign. Prerequisite for implementing this is that your video is located on the same web page as where you have Usabilla implemented and that the video is played using HTML5 video player.
Note: The implementation explained in this article does not work with Youtube. If you want to trigger a Campaign after a Youtube video has ended you'll need to use the Youtube iFrame Player API.