Playing Field: GTM (new UI) + Youtube Video

Demo of YouTube tracking using GTM (new UI) custom listener + dataLayer. Refer to the complete article and get the code.

Google Tag Manager and Universal Analytics page view.

A custom GTM listener will detect the presence of the Youtube video and load the Youtube API (watch for those additional scripts being loaded).

A custom HTML tag will fire an event for 0%,25%,50%,75% and 100% video play, as well as play & pause.

When including the IFRAME for the Youtube video, don't forget to add "?enablejsapi=1&origin=http://webanalyticssolutionprofiler.com" to the SRC

Copyright Cardinal Path © 2015, All Rights Reserved. Privacy and Copyright Policies.