This is a message.

How to monitor clicks on videos Created Feb 17, 2010

This thread is solved

Views: 1613     Replies: 1     Last reply Feb 17, 2010  
You must login first before you can use this feature

alex.clay@sportcal.com

Posts: 1

Registered:
Feb 2, 2010

How to monitor clicks on videos

Posted: Feb 17, 2010

We have Flowplayer on our web site and it is NOT set to autoplay.

How can I record the number of times the video is clicked ? It is hosted on another web server so cannot use log files.

Below is the code being used.

Any ideas very gratefully received

Alex

<script type="text/javascript" src="../video/js/flowplayer-3.1.4.min.js"></script>
<script>
flowplayer("player", "../video/flowplayer.commercial-3.1.5.swf", { key: '#$xxxxxxxxxxxxxxxxxxx', clip: { autoPlay: true, scaling: "fit" } , plugins: { controls: { fullscreen: true ,autoHide: 'always', backgroundColor: '#000000' } } } );
</script>
<table border="0" cellpadding="0" cellspacing="0" style="width: 320px">
<tr>
<td style="width: 320px">
href=http://xxx.xxx.xxx.xxx/download/xxx/flv/xxx_PROMO_FLV_1200Kbps_16_9.flv"
style="display:block;width:320px;height:180px;color:#FFFFFF;"
id="player">
<img src="../images/xxx_video_holding.jpg" border=0 alt="Click to view video" />

</td>
</tr>
<tr>
<td style="width: 320px; height: 10px">
</td>
</tr>
</table>

dherbst

Posts: 75

Registered:
Apr 20, 2009

» How to monitor clicks on videos

Posted: Feb 17, 2010

Reply to: How to monitor clicks on videos, from alex.clay@sportcal.com
If you have google analytics on your page you can enable event tracking and then use an onStart callback in flowplayer like this:


flowplayer(id,...,{ onStart:function(){ pageTracker._trackEvent("play", "video_title_or_url" );
}
);