I am tracking YT video consumption on my site using the You Tube IFrame Player API and deployed the code using DTM
- My set up
All looks fine but when i run the video i get the following error on the debugger console - Uncaught TypeError: i.Media.open is not a function
Are you using the Media Module code that matches your s_code/AppMeasurement version? Typically, when you download your code library from Code Manager, there is a Media Module that's included in the download package. We've seen issues when users try to use an older version of the Media Module with an updated s_code/AppMeasurement library.
Additionally, our video team is encouraging all customers to move to Video Heartbeat tracking. The Media Module is considered legacy at this point. Please see the documentation here.