mickey / videojs-ga

Google Analytics plugin for video.js
MIT License
138 stars 109 forks source link

Multiple videos / video identifier #20

Open andrewtweber opened 9 years ago

andrewtweber commented 9 years ago

Question / feature request:

I'm tracking analytics for multiple videos on my site. Is there a way I can send a unique video ID to Google with each event?

cdhowie commented 8 years ago

@andrewtweber We have this same requirement. I am considering creating a patch that allows eventLabel to be a function that would return the desired label. If I do this I will open a pull request.

MazGrasl commented 8 years ago

I encountered a similar problem like @andrewtweber with playing videos from a playlist, but GA sending only the ID for the first video. I solved it by setting the eventLabel (again) in the play function. I don't have access to the code right now, but if there's interest, I can post a diff when I get back