tracker mouse on PT timeline
authorSamuel Huron <samuel.huron@centrepompidou.fr>
Fri, 18 Nov 2011 20:26:18 +0100
changeset 382 55370839e230
parent 373 66092f867c03
child 383 f9347f6653b3
tracker mouse on PT timeline
web/res/metadataplayer.polemic/src/js/polemic.js
--- a/web/res/metadataplayer.polemic/src/js/polemic.js	Tue Nov 15 11:38:14 2011 +0100
+++ b/web/res/metadataplayer.polemic/src/js/polemic.js	Fri Nov 18 20:26:18 2011 +0100
@@ -502,10 +502,12 @@
 									e.mouseover(function () {
 										//this.attr({stroke:"#fff","stroke-width":5});
 										//this.toFront();
+										_gaq.push(['_trackPageview', location.pathname + location.search + location.hash+"!!MetaDatPlayer.PT.mouseover(time:"+this.time+",id:"+this.id+")"]);
 									}).mouseout(function () {
 										//this.attr({stroke:"#00","stroke-width":0.1});	
 									}).mousedown(function () {
 										__IriSP.MyApiPlayer.seek(this.time/1000);
+										_gaq.push(['_trackPageview', location.pathname + location.search + location.hash+"!!MetaDatPlayer.PT.mousedown(time:"+this.time+",id:"+this.id+")"]);
 									});
 									__IriSP.jQuery(e.node).attr('id', 't'+k+'');
 									__IriSP.jQuery(e.node).attr('title', frames[i].mytweetsID[k].title);
@@ -546,6 +548,8 @@
 			__IriSP.jQuery("#tipcolor").css("background-color", tipColor);
 			__IriSP.jQuery("#tiptext").text(tipText);
 			__IriSP.jQuery("#tip").show();
+			_gaq.push(['_trackPageview', location.pathname + location.search + location.hash+"!!MetaDatPlayer.PT.mouseover("+this.time+","+this.id+")"]);
+			
 		}else{
 			if (typeof(__IriSP) !== 'undefined' && typeof(__IriSP.jQuery) === 'function') {
 				__IriSP.jQuery("#tip").css("left", -10000).css("top", -100000);