videojs-ga
videojs-ga copied to clipboard
Allow the eventLabel config setting to be a function
Allows code to provide a function for the eventLabel
option. If this option is a function, it will be called each time an event label is needed. This allows for different labels to be used over time, for example when playing a playlist instead of a single video. (Fixes #20)
Yes, much needed for playlists. Thanks!