Embed YouTube’s video player into your site to showcase your video content
Automatically collect YouTube video analytics data using Segment’s plugin
Send your video data to tools for analytics like Chartbeat and Adobe Heartbeat with just a few clicks
Analyze which videos drive down-funnel engagement, retention, and revenue by combining video data with other website interactions
How YouTube Works
When you embed the YouTube video player in a webpage it will generate event data as customers interact with content, and maintain these events along with detailed properties about the interactions in the browser cache (e.g. video playing/paused, video length, current position).
Get more out of YouTube with Segment
If you are already using Segment, getting started with YouTube Analytics is easy because analytics.js is able to collect and route video event data for you without the need for customization. When you initialize the YouTube plugin, which requires only three lines of code, the plugin will listen to your YouTube player for events and respond by firing the corresponding Segment Video Spec events on analytics.js.
Segment will automatically collect events and properties according to the Video Spec, which comes pre-configured to collect most data related to playback and content.
Video Playback Started
If playing a single video, this will fire when the video starts
If playing a playlist, this will fire when the first video in the playlist starts
Video Playback Completed
If playing a single video, this will fire when the video finishes
If playing a playlist, this event will fire when the final video in the playlist finishes
Video Playback Paused/Resumed
Video Playback Buffer Started/Completed
Video Playback Seek Started/Completed
Video Content Started/Completed
For playlists, these events get fired for each individual video
Events come with the following properties automatically populated:
For ‘Playback’ Events
For ‘Content’ Events