I have embeded some youtube videos in my website. I want to track the views of each videos with google analytics, but I cannot catch any onClick event because the videos are embeded in using iFrame. How can I track the views of youtube videos that is embeded in my webpage using iFrame ?
相关问题
- how to get selected text from iframe with javascri
- How do you scroll an iframe from within using jque
- Unable to Full Screen Youtube Video Inside Custom
- Thumbnails from the Vimeo website harder than YouT
- Is there any way to make the background of a 3D-mo
相关文章
- iframe的里内容看不到,但却点得到
- How to correctly use google analytics measurement
- How to dynamically add wmode=transparent to Youtub
- iframe content disappears on Firefox
- Changing an IFrames InnerHtml from codebehind
- Scrolling issues with ExtJS 5 app inside IFrame
- iframe not reading cookies in Chrome
- Android referral tracking not working with Google
I've been using YouTube's API to track plays as events in Google Analytics. It's the same format in iFrame API and javascript. Look at the iFrame API if you want to track other functions. This is where I originally got the event tracking information.
You'll have to change the videoID below: