Posts by Diego Toledo • 11 points
2 posts
-
0
votes1
answer84
viewsA: Youtube with Analytics events
SOLUTION: document.querySelector(".youtube-player").addEventListener("click",function(){ ga('send', 'event', 'Videos', 'Play', 'Video1'); });
-
1
votes1
answer84
viewsQ: Youtube with Analytics events
I’m using the following scheme to embed Youtube videos: https://jsfiddle.net/4qcr60xz/ This allows the video to be requested only when the user clicks on the "player" (thumbnail), making the page…