Commit 877f147a authored by fred's avatar fred
Browse files

js: add tracking for goals related to podcasts and playlist (#1133, #1134)

parent b291c6c0
......@@ -282,12 +282,18 @@ $(function() {
onPlay:function(self){
$('#DirectStreamPanik')[0].pause();
self.playlistContainer.scrollTo(self.isActive, 800 );
if (typeof (_paq) == 'object') {
_paq.push(['trackGoal', 4]);
}
},
onAdd:function(self){
//self.isLastAdd[0].scrollIntoView();
self.isLastAdd.find('a').ajaxifyClick();
self.playlistContainer.scrollTo(self.isLastAdd, 800).delay(1000).scrollTo(self.isActive, 800 ).clearQueue();
if (typeof (_paq) == 'object') {
_paq.push(['trackGoal', 3]);
}
},
onUpdate:function(self){
//doLog(JSON.stringify(self.playlist, null, '\t'));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment