mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Added ga event for import/exporting soundcloud and zoff
This commit is contained in:
@@ -717,6 +717,7 @@ var List = {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
} else if(thisSong == undefined) {
|
} else if(thisSong == undefined) {
|
||||||
|
ga('send', 'event', "export", "soundcloud");
|
||||||
if(full_playlist.length > 0) {
|
if(full_playlist.length > 0) {
|
||||||
List.exportToSoundCloud(full_playlist[0], 0);
|
List.exportToSoundCloud(full_playlist[0], 0);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1063,6 +1063,7 @@ function addDynamicListeners() {
|
|||||||
this.preventDefault();
|
this.preventDefault();
|
||||||
var new_channel = document.getElementById("import_zoff").value;
|
var new_channel = document.getElementById("import_zoff").value;
|
||||||
document.getElementById("import_zoff").value = "";
|
document.getElementById("import_zoff").value = "";
|
||||||
|
ga('send', 'event', "import", "zoff");
|
||||||
if(new_channel == "") {
|
if(new_channel == "") {
|
||||||
M.toast({html: "It seems you've entered a invalid channel-name.", displayLength: 4000});
|
M.toast({html: "It seems you've entered a invalid channel-name.", displayLength: 4000});
|
||||||
return;
|
return;
|
||||||
@@ -1087,6 +1088,7 @@ function addDynamicListeners() {
|
|||||||
this.preventDefault();
|
this.preventDefault();
|
||||||
Helper.removeClass(".playlist_loader_soundcloud", "hide");
|
Helper.removeClass(".playlist_loader_soundcloud", "hide");
|
||||||
Helper.addClass("#listImportSoundCloud", "hide");
|
Helper.addClass("#listImportSoundCloud", "hide");
|
||||||
|
ga('send', 'event', "import", "soundcloud");
|
||||||
Helper.ajax({
|
Helper.ajax({
|
||||||
type: "POST",
|
type: "POST",
|
||||||
headers: {
|
headers: {
|
||||||
|
|||||||
Reference in New Issue
Block a user