![](https://secure.gravatar.com/avatar/1a17af8e77eb01ef4e294c9bdab31ae6?rating=PG&size=50&default=https%3A%2F%2Fcdn.desk.com%2Fassets%2Funknown_user_50-8ad5644bbe6b1bd7454f2ea465f782bd.png)
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"
}
});