After a few hours head scratching I was finally able to make sense of the lunametrics code which essentially looks for embedded YouTube video(s) on your page and triggers event tracking on Google Analytics for:
- Unstarted
- Play
- Watch to End
- Pause
- Buffering
- Cueing
1. Insert the following code into page inside the body tags:
<script src="//cdn.jsdelivr.net/youtube-google-analytics/8.0.2/lunametrics-youtube.gtm.min.js"></script>
*Page obviously must have Google Analytics tracking code within the <head> tags
Continue reading
Recent Comments