Solved

How do I track events on a YouTube video that is embedded in my site?

  • 21 August 2019
  • 2 replies
  • 180 views

Badge

I am trying to track events on a YouTube video that is embedded in my site -- has anyone done this before?


icon

Best answer by A K 13 February 2020, 21:40

View original

2 replies

Badge

You can use Youtube's iFrame API to track the events happening in the video player. I'd recommend reading through the YouTube docs , deciding what's important to send to Mixpanel, then implementing it into all the pages you embed videos on.


Userlevel 1

You can absolutely do this!

 

Here’s a tutorial:

https://community.mixpanel.com/announcements-6/track-interactions-on-iframe-embedded-youtube-videos-3984

Reply