To use viewer tracking, it must be included in your license.
How it works
This feature allows a third party integrator to track when a user of their system has completed a video. To achieve this, an id is passed to the Viostream player when it is embedded, and Viostream calls an endpoint of your choosing with that id and an event name.
- Goto Player detail
- Check Event tracking under Settings tab.
Passing an id to an embedded player
- Obtain an embed script for your video.
- Rearrange the embed code to be of the format:
<script src="//publish.viostream.com/embed/mediakey?playerKey=playerkeywitheventtracking" data-eventid="eventidfromyoursite"></script>
Replace playerkey with the key of the player configured to use event tracking and mediakey with the key to the media being embedded.
Consider the following Embed code:
Player tracking code:
<script src="//publish.viostream.com/embed/7ja3dtnr7pg68?playerKey=s-bi7xtgd" data-eventid="123456789"></script>