How to track video milestones in brightcove html5 player using adobe DTM?

Avatar

Avatar

payald98451196

Avatar

payald98451196

payald98451196

25-09-2017

I have a query regarding how to track milestones(Video) in brightcove player by using html 5.

There is already predefined events available for PLAY, PAUSE, STOP, but for the tracking the milestones i am unable to track it via DTM.

Below mentioned is the code,which i have written for PLAY & PAUSE -

videojs('te-brightcove-trigger-video_html5_api').on('play',function(){
  var myPlayer = this;
  console.log('play');
  s.linkTrackVars='events,eVar21,prop21';
  s.linkTrackEvents='event22';
  s.eVar21 = myPlayer.mediainfo.name;
  s.prop21 = myPlayer.mediainfo.name;
  s.events = 'event22';
  s.tl(this, 'o');
});


videojs('te-brightcove-trigger-video_html5_api').on('pause',function(){
  console.log('pause');
  var myPlayer = this;
  s.linkTrackVars='events,eVar21,prop21';
  s.linkTrackEvents='event21=6,event24';
  s.eVar21 = myPlayer.mediainfo.name;
  s.prop21 = myPlayer.mediainfo.name;
  s.events = 'event21=6';
  s.events = 'event24';
  s.tl(this, 'o');
});

View Entire Topic

Avatar

Avatar

John_T_Smith

Avatar

John_T_Smith

John_T_Smith

25-09-2017

What is the full name of DTM?

Please post the name of the program you use so a Moderator may move this message to the program forum