Skip to content
This repository has been archived by the owner on Jul 25, 2019. It is now read-only.

Percent Played passes wrong value #13

Open
mister-yan opened this issue Oct 18, 2016 · 4 comments
Open

Percent Played passes wrong value #13

mister-yan opened this issue Oct 18, 2016 · 4 comments

Comments

@mister-yan
Copy link

With this script, the Percent Played eventLabel is the name of the Video and not the Percent (%) of the video played. The % of the video that is played is passed as the eventValue (which is incremental in GA).

@mister-ben
Copy link
Collaborator

Can you clarify how you'd expect it to be tracked?

@sahitani
Copy link

HI,
I would like to add upon that , I am facing the same issue that percent played gives a weird behavior while tracking the percent played.

How current the percent played is working:
If video is watched endlessly the “Total Events=10”, “Unique Events=1”, “Event Value=450” (Will be a default value, which indicates the video was played till its last breath), if Video is played again total Event will be calculated by the formula as “Total Events= ((duration for which video is watched/ Total Duration of video)* 10)”, “Avg Value=45 (450/10)”, but the Event value for the after the 10 Events tracks gives a weird behavior sometimes adding 20 and sometimes 10 to the Events value.

What I expect is if percent played tracks as:
o 1-25%
o 26-50%
o 51-75%
o 76-100%

@lee101
Copy link

lee101 commented Nov 28, 2018

Also the 100% event isnt sent so that it would actually be 360 total instead of 450, Id say i would sooner the product send the percent played value as the eventLabel and forget about using the metric, its hard to group by the metric to see how far along people got because of google analytics automatically summing up the metric which doesn't make sense for a "percent played", id send it as eventLabel in which case you could segment data by how far people got through the video ect. people can use the builtin pageTitle to segment by page if you stop sending the video name (but there can be two or more videos in a page which would be a problem) if you want to get around that you could include the video name in the eventCategory if you like e.g. "Percent Played - videoname" which might work i'm not sure, definitely a secondary problem because in its current state is hard to really know how far people are getting through videos

@lee101
Copy link

lee101 commented Nov 28, 2018

I did manage to get some easier way to view the data from how it currently sends the data to ga:

its based on a custom metric in data studio “eventAverageValue“ = eventValue/totalEvents which gives the average value of the percent played.
if they averaged 90% then it would be (10+20+30+40+50+60+70+80+90)/9 = 50, i’m not sure how/why it occasionally goes over 50… it does seem to stop against 45 a lot which would be 80% or (10+…+80)/8 = 10*(8*9/2)/8 = 45 using the n * n+1/2 summation rule… a bit complex lol

so if they average 20% then it would be 15 (half of 10 and 20)
30% would be (10+20+30)/3= 10*(1+2+3)/3 = 10*(3*4/2)/3= 20

value sent to ga (eventAverageValue) percentage average
10 10
15 20
20 30
25 40
30 50
35 60
40 70
45 80
50 90

will still have to keep in mind it doesn’t send 100% so the max we are going to get is 90% so an average value of 50 may mean (depending on how many people watch to the last 100% which isnt tracked) it could be 50% average percent played or it could actually be 55% or somewhere inbetween so its a conservative average

i should be able to edit the custom metric that puts it through that transform function so it doesnt display it in that strange way, but still the gap where it doesnt send 100%

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants