Support » Plugin: Clicky Analytics » Tracking YouTube Videos embedded in lightbox (modal window)?

  • Colin

    (@colinsafranek)


    Thank you so much for the great plugin.

    I would like to track YouTube user actions for videos on my site. I have the “track Youtube videos” option checked in the plugin settings area, but I am not seeing any user interaction data in my Clicky Analytics reports. I see that users have watched those videos, but there is no user interaction data (i.e. Average Time Spent Watching, Total Time Spent Watching, Average Time Until Stopping or Seeking, etc.).

    Most of my YouTube videos are being loaded in a modal window (lightbox), so I’m not sure if that might be interfering with the analytics code for video tracking.

    Do you know what might be going on? And how I might be able to fix this?

    Thank you in advance for any help you can provide.

    – Colin

    https://wordpress.org/plugins/clicky-analytics/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Alin Marcu

    (@deconf)

    Member

    Hi,

    Here’s how an youtube video must be embedded: http://clicky.com/help/media#youtube.

    Colin

    (@colinsafranek)

    Hi again,

    thanks for the response. I read through the youTube tracking docs and I think the issue is that my videos are dynamically loaded in a modal window, which is created when a user clicks a link/button. So basically the youTube video iframe is being added to the DOM after the clicky youtube.js file has already been queued, and the modal window html containing the youTube iframe is loaded at the very bottom of the page, right before the closing </body> tag.

    Do you know if there is any additional documentation regarding the youTube clicky analytics? Like maybe a javascript snippet which could re-initialize the tracking script when new content is added to the DOM?

    Thank you for any help!

    – Colin

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Tracking YouTube Videos embedded in lightbox (modal window)?’ is closed to new replies.