165
edits
| Line 56: | Line 56: | ||
<code>WebTrends.prototype.dcsET=function(){<br> var e=(navigator.appVersion.indexOf("MSIE")!=-1)?"click":"mousedown";<br> this.dcsBind(e,this.dcsDownload);<br> this.dcsBind("contextmenu",this.dcsRightClick);<br> this.dcsBind(e,<font color=red><b>this.dcsLinkTrack</b></font>);<br>}</code> | <code>WebTrends.prototype.dcsET=function(){<br> var e=(navigator.appVersion.indexOf("MSIE")!=-1)?"click":"mousedown";<br> this.dcsBind(e,this.dcsDownload);<br> this.dcsBind("contextmenu",this.dcsRightClick);<br> this.dcsBind(e,<font color=red><b>this.dcsLinkTrack</b></font>);<br>}</code> | ||
3. Verify that automatic link tracking is turned in the inline script: | |||
<code><script type="text/javascript" src="http://mozcom-cdn.mozilla.net/includes/min/min.js?g=js_stats"></script><br><script type="text/javascript"><br>//<![CDATA[<br>var _tag=new WebTrends({"dcsid":"dcst2y3n900000gohmphe66rf_3o6x","rate":5,"fpcdom":"mozilla.org"});<br>_tag.dcsGetId();<br>//]]><br></script><br><script><br>//<![CDATA[<br><font color=red><b>_tag.trackevents=true</b></font>;<br>_tag.dcsCollect();<br>//]]><br></script></code> | |||
4. Add the following mark-up to reference the video: | |||
<code><div id="video-player" class="mozilla-video-control"><br> <video<br> <font color= | <code><div <font color=red><b>id="video-player"</b></font> class="mozilla-video-control"><br> <video<br> <font color=red ><b>id="video"</b></font><br> width="640"<br> height="360"<br> controls="controls" preload="metadata"<br> poster="/img/covehead/video/poster-brand.jpg"<br> src="http://videos-cdn.mozilla.net/your_video.webm"><br> </video><br></div></code> | ||
Notice that the id of the div tag is highlighted. This is required the reporting engine can differentiate a video play from other type of events. It must always be set to <b>video-player</b>. Also, the id value in the video tag should designate the name of the video. This will allow Webtrends to distinguish it from other videos on your site. | |||
== DCS Tracking: How to Create a Report == | == DCS Tracking: How to Create a Report == | ||
edits