Tracking Flowplayer video using DTM | Community
Skip to main content
veer_singh1
February 27, 2017
Solved

Tracking Flowplayer video using DTM

  • February 27, 2017
  • 5 replies
  • 2689 views

Hi,

 

I am trying to implement DTM video tracking code in our website. We are using Flowplayer to play videos in our website. I searched in forms to see any way of implementing code to track Flowplayer video, but only got info that it doesn't have any out of the box functionality to track videos provided by other video providers (Brightcove, Youtube, Vimeo, VideoJS, Flowplayer, etc.)
 

Can any one tell how to implement the DTM code to track video which is using Flowplayer?

Thanks

Veer

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by EricMatisoff

Hi Veer,

My first suggestion is to try leveraging the built-in event-based rules focused on HTML5 Video player events. Unfortunately, this won't cover Flash-based video players. Also, there's a chance that the events don't hook into Flowplayer - I can't speak from experience with that video player.

If those event-based rules don't work, your next step is to tap into the API's of Flowplayer. I've seen it done successfully in the past with Brightcove/YouTube/Vimeo, so if Flowplayer has a decent API, it shouldn't be too painful. The important items to focus on are:

  • Video Name (or a Video ID if Name is unavailable in the API)
  • Video Actions (Play, Complete, Scrub)

Hopefully that helps point you in the right direction!

5 replies

EricMatisoff
Adobe Employee
EricMatisoffAdobe EmployeeAccepted solution
Adobe Employee
February 27, 2017

Hi Veer,

My first suggestion is to try leveraging the built-in event-based rules focused on HTML5 Video player events. Unfortunately, this won't cover Flash-based video players. Also, there's a chance that the events don't hook into Flowplayer - I can't speak from experience with that video player.

If those event-based rules don't work, your next step is to tap into the API's of Flowplayer. I've seen it done successfully in the past with Brightcove/YouTube/Vimeo, so if Flowplayer has a decent API, it shouldn't be too painful. The important items to focus on are:

  • Video Name (or a Video ID if Name is unavailable in the API)
  • Video Actions (Play, Complete, Scrub)

Hopefully that helps point you in the right direction!

veer_singh1
March 2, 2017

I went through Flowplayer API and on:

 

flowplayer(function (api, root) { api.on("load", function () { // do something when a new video is about to be loaded }).on("ready", function () { // Added the DTM code here });

What is happening is when the video starts I am not getting any value in debugger but when video ends and I start again then in the Adobe debugger I am getting required values. Not able to figure out what is the issue (Why it is behaving such way.) And nothing else in the FLowplayer API I find which can help me.

veer_singh1
March 2, 2017

In console the events are firing on first attempt but the report in plugin is not generating. Weird or I am missing something.

EricMatisoff
Adobe Employee
Adobe Employee
March 4, 2017

This github project may be helpful for you too: https://github.com/alcazes/Video-in-Adobe-Analytics-V15/wiki/4.5%5D-Adobe-Analytics-V15-and-Video-Milestone-Implementation:-DTM-JS-Player-implementation#step-4-page-load-rule-to-add-video-players

 

Can you share a URL where you're seeing the events fire but the report is not generating?

veer_singh1
March 10, 2017

Hi Eric thanks for the link. Can you provide link for latest version of s_code-blog.js file the code in this file is conflicting with other adobe js file (http://assets.adobedtm.com/a79611af417eddae8b7fc53a70dc97cdcc19269f/satelliteLib-a0ce62fd91cccf9ecd107f7a368e39d7ed0b2b2b-staging.js) wjhich is used in site.

Thanks