YouTube percentages not used
Closed this issue · 8 comments
I followed the example in the readme to add percentages: [25, 50, 75, 90]
to the _gasTrackYoutube
call, but did not see any percentage events in GA. Stepping thru in Firebug showed that lines 209-215 of youtube.js result in opts = {}
and thus opts['percentages'] = []
.
I can't reproduce this. It works for me. I'll close this because it doesn't have enough information. opts
is not overwritten if you send a parameter to _gasTrackYoutube
. You can either reopen it with an example of a page that is broken or a pull request of the supposed fix.
You should not see youtube.js on Firebug. You should use one of the compiled files from the Download page:
Can you provide a working example page so I can determine if my browsers are at fault?
Example page: http://dylanbarlett.com/gastest.html
Steps to reproduce:
- Copy unminified gas.js to server.
- Supply percentages in call to
_gasTrackYoutube
per readme. - Start and pause video.
- Observe that GET requests are made to __utm.gif with play and pause events, as expected. Confirm that events are shown in Google Analytics.
- Observe no GET requests are made with percentage events, and no events are shown in GA.
Debugging:
- Set breakpoint on line 1534 of gas.js
- Watch value of
opts = Object { force=false, category="YouTube Video", percentages=[0]}
You're right. Thanks for pointing it out. I think I need some sleep.
I just uploaded v1.8 with this fix. Let m know if that works for you.
Thanks for the fix. gas.js downloads fine, but gas.min.js results in File was not found.
@dbarlett fixed
Hi,
This is still a problem for me. Was this fix ever confirmed?
Thx
Justin
Works for me, calling v1.10.1 from cdnjs.