Video player tracking
You can implement advanced IBM® Digital Analytics Explore video tracking using Element Tag 'attributes' 13, 14 and 15.
- Element ID: pass the name of the video (e.g. Six Minute Abs)
- Element Category: pass the category of the video (e.g. Fitness Videos)
- Element Attribute Field 13 (e_a13): Pass the "Video Status:" "0"=Launch; "1"=Pause; "2"=Play;"3"=Completion. Video abandonment/completion rates and average video play times are calculated using the 'Launch' and 'Completion' events. 'Pause' and 'Play' events are sent only in response to clicks on video player 'pause' or 'play' controls. Alias Element Attribute 13 in reporting as "Video Status."
- Element Attribute Field 14 (e_a14): Pass the "Video Time Stamp" (in seconds) of the status action. For example, if the user Stops the video 1:23 to the video, pass "83". Alias Element Attribute 14 in reporting as "Video Time Stamp." Video timestamp must be sent for all Video Status values including 'Completion', in which case the value should be equal to the Element attribute 15 'Video Length' value.
- Element Attribute Field 15 (e_a15): Pass the "Video Length" (in seconds) of the total length of the video. For example, if the video is 3:10 in length, pass "190". Alias Element Attribute 15 in reporting as "Video Length."
Example "Element" Tag Function Calls with Video Explore Attributes:
In this example sequence we are tracking the video "Six Minute Abs" in category "Fitness Videos" through a hypothetical typical launch, pause, play and completion sequence.
Function Definition from //libs.coremetrics.com/eluminate.js:
cmCreateElementTag(elementID, elementCategory, attributes)
- The video is loaded into the player. In this example, the video starts playing only when the
'play' control is subsequently clicked by the visitor. For videos which load and begin playing
immediately without any prompt from the visitor, two element tags should be sent: 1 launch ("0")
element and 1 play ("2") element (Steps 1 and 2
together).
cmCreateElementTag("SIX MINUTE ABS","FITNESS VIDEOS","-_--_--_--_ --_--_--_--_--_--_--_--_-0-_-0-_-190"); - Visitor clicks the 'play' control, starting play of the video.
cmCreateElementTag("SIX MINUTE ABS","FITNESS VIDEOS","-_--_--_--_ --_--_--_--_--_--_--_--_-2-_-0-_-190"); - Visitor 'pauses' the video halfway through (95 seconds).
cmCreateElementTag("SIX MINUTE ABS","FITNESS VIDEOS","-_--_--_--_-- _--_--_--_--_--_--_--_-1-_-95-_-190"); - Visitor resumes play at 95
seconds
cmCreateElementTag("SIX MINUTE ABS","FITNESS VIDEOS","-_--_--_--_--_ --_--_--_--_--_--_--_-2-_-95-_-190"); - Visitor watches video to completion - note that timestamp (14) and video length attributes (15)
are now
equal
cmCreateElementTag("SIX MINUTE ABS","FITNESS VIDEOS","-_--_--_--_--_ --_--_--_--_--_--_--_-3-_-190-_-190");