added piwik tracking for RandomPlayer
This commit is contained in:
@@ -1044,12 +1044,21 @@
|
|||||||
this.$btn.addClass('is-active');
|
this.$btn.addClass('is-active');
|
||||||
this.shuffle();
|
this.shuffle();
|
||||||
this.next();
|
this.next();
|
||||||
|
// piwik
|
||||||
|
if(typeof _paq !== 'undefined'){
|
||||||
|
// trackEvent(category, action, [name], [value])
|
||||||
|
_paq.push(['trackEvent', 'RandomPlayer', 'start']);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
stop(){
|
stop(){
|
||||||
this.active = _audioPlayer.shuffle_is_active = false;
|
this.active = _audioPlayer.shuffle_is_active = false;
|
||||||
this.$btn.removeClass('is-active');
|
this.$btn.removeClass('is-active');
|
||||||
// stop audio player
|
// stop audio player
|
||||||
// _audioPlayer.stop();
|
// _audioPlayer.stop();
|
||||||
|
if(typeof _paq !== 'undefined'){
|
||||||
|
// trackEvent(category, action, [name], [value])
|
||||||
|
_paq.push(['trackEvent', 'RandomPlayer', 'stop']);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
next(){
|
next(){
|
||||||
if(this.active && this.shuffledPlaylist.length > 0)
|
if(this.active && this.shuffledPlaylist.length > 0)
|
||||||
|
|||||||
@@ -1044,12 +1044,21 @@
|
|||||||
this.$btn.addClass('is-active');
|
this.$btn.addClass('is-active');
|
||||||
this.shuffle();
|
this.shuffle();
|
||||||
this.next();
|
this.next();
|
||||||
|
// piwik
|
||||||
|
if(typeof _paq !== 'undefined'){
|
||||||
|
// trackEvent(category, action, [name], [value])
|
||||||
|
_paq.push(['trackEvent', 'RandomPlayer', 'start']);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
stop(){
|
stop(){
|
||||||
this.active = _audioPlayer.shuffle_is_active = false;
|
this.active = _audioPlayer.shuffle_is_active = false;
|
||||||
this.$btn.removeClass('is-active');
|
this.$btn.removeClass('is-active');
|
||||||
// stop audio player
|
// stop audio player
|
||||||
// _audioPlayer.stop();
|
// _audioPlayer.stop();
|
||||||
|
if(typeof _paq !== 'undefined'){
|
||||||
|
// trackEvent(category, action, [name], [value])
|
||||||
|
_paq.push(['trackEvent', 'RandomPlayer', 'stop']);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
next(){
|
next(){
|
||||||
if(this.active && this.shuffledPlaylist.length > 0)
|
if(this.active && this.shuffledPlaylist.length > 0)
|
||||||
|
|||||||
Reference in New Issue
Block a user