Platform: Vimeo
Testing: Vimeo Player.js API detection and event tracking
Video ID: 76979871
Title: The New Vimeo Player (Vimeo Staff Pick)
Embed Type: IFrame with Player.js API
window.Vimeo global object,
iframe patterns matching player.vimeo.com,
or elements with [class*="vimeo-wrapper"] / .vimeo-player
Vimeo provides a JavaScript API via Player.js:
// Create player instance
var player = new Vimeo.Player('vimeoplayer');
// Listen for events
player.on('play', function() { console.log('Playing'); });
player.on('pause', function() { console.log('Paused'); });
player.on('ended', function() { console.log('Ended'); });
player.on('timeupdate', function(data) {
console.log('Progress:', data.percent);
});
Vimeo email gates are configured in the Vimeo dashboard (Business/Premium plans). Use this button to simulate what happens when a viewer submits their email.
_ll.video.lead({
platform: 'vim',
email: 'vimeo-viewer@acmecorp.io',
firstName: 'Vimeo',
lastName: 'Viewer',
video_id: '76979871'
})
// → emits: vle (video_lead) + pp (possible_person)