
google analytics with jwplayer 6
I want to send these video start time, video end time and total video watch time to GA. I find some code on google but does not know which parameter should I pass.
On video play I want to send video start and end time and when user switch to new page I want to send total watch time.
I can send these information by writing code separately but want to get it done with jwplayer.
var playerInstance = jwplayer("myElement");
playerInstance.setup({
file: "/uploads/example.mp4",
image: "/uploads/example.jpg",
ga: {
idstring: "title",
label: "mediaid"
}
});