Open Barri-G opened 7 years ago
Just my two cents. We set percentsPlayedInterval
to 70 and setup goal in GA. Since anything above 51 will only be triggered once per video play.
@devkinetic which VJS version do you use?
The latest, with https://github.com/mickey/videojs-ga/pull/33 applied.
Hi.
As a videojs user now I need to get some information about "percent played" on some of my websites.
I've tried your code and it works, but I think the way it sends the percent played is not the easiest way to understand the information; I mean, when somebody plays 10% I get 10 as a value on my analytics. But if the video continues playing and reach 20% then "percent" = 20 is sent, so analytics shows "30" (10+20). I think the script should send 10 always if "percentplayedinterval" is set to 10. I was thinking about changing this piece of code
to this:
but before doing it I'd like to know if I'm omitting anything important, because you chase to use "percent" instead of "percentsPlayedInterval" on "sendbeacon" and probably you have your reasons.
Thank you for your time and your great project.