youtube-google-analytics

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.

MIT licensed

Tags: analytics, youtube, tracking

Version

Asset Type

  • https://cdnjs.cloudflare.com/ajax/libs/youtube-google-analytics/8.0.2/lunametrics-youtube.gtm.min.js
  • https://cdnjs.cloudflare.com/ajax/libs/youtube-google-analytics/8.0.2/lunametrics-youtube.gtm.js

Library Tutorials

Want to write your own awesome tutorials? Make and submit them today