版本:
文件:
- https://cdn.bootcdn.net/ajax/libs/youtube-google-analytics/8.1.4/lunametrics-youtube.gtm.js
- https://cdn.bootcdn.net/ajax/libs/youtube-google-analytics/8.1.4/lunametrics-youtube.gtm.min.js
This is a plug-and-play tracking solution for tracking user interaction with YouTube videos in Google Analytics. It will detect if GTM, Universal Analytics, or Classic Analytics is installed on the page, in that order, and use the first syntax it matches unless configured otherwise. It include support for delivering hits directly to Universal or Classic Google Analytics, or for pushing Data Layer events to be used by Google Tag Manager.