Added ga event for import/exporting soundcloud and zoff

This commit is contained in:
Kasper Rynning-Tønnesen
2018-11-07 11:39:26 +01:00
parent 98f6f9b6fb
commit 496c1cdeb2
2 changed files with 3 additions and 0 deletions

View File

@@ -717,6 +717,7 @@ var List = {
});
}
} else if(thisSong == undefined) {
ga('send', 'event', "export", "soundcloud");
if(full_playlist.length > 0) {
List.exportToSoundCloud(full_playlist[0], 0);
}

View File

@@ -1063,6 +1063,7 @@ function addDynamicListeners() {
this.preventDefault();
var new_channel = document.getElementById("import_zoff").value;
document.getElementById("import_zoff").value = "";
ga('send', 'event', "import", "zoff");
if(new_channel == "") {
M.toast({html: "It seems you've entered a invalid channel-name.", displayLength: 4000});
return;
@@ -1087,6 +1088,7 @@ function addDynamicListeners() {
this.preventDefault();
Helper.removeClass(".playlist_loader_soundcloud", "hide");
Helper.addClass("#listImportSoundCloud", "hide");
ga('send', 'event', "import", "soundcloud");
Helper.ajax({
type: "POST",
headers: {