YouTube has become a popular way to communicate information. You can use Web Tracking to determine if someone has played an embedded YouTube video on your Higher Logic site.
NOTE: To complete this task, you must be authorized to make changes to your Higher Logic site.
To track plays of embedded YouTube videos:
Many YouTube videos are embedded using iFrames. To track YouTube views, you can use YouTube's iFrame API.
- Add the standard Higher Logic Informz Web Tracking Code to the bottom of your site page that contains the embedded YouTube video.
- At the top of that page, include the YouTube API script.
- Add this iFrame code where you would typically add iFrame code.
Now you have to include code to receive the Play action from YouTube. This way, whenever someone plays a video on your site (by clicking the Play button), you'll see a Web Tracking result.
- Add the YouTube play script code and be sure you enter the correct video ID.
Now, you'll see interaction data related to video plays in your Web Tracking Report.