Google Analytics events

This commit is contained in:
Kasper Rynning-Tønnesen
2018-02-25 22:42:53 +01:00
parent 48cd95a11e
commit 5aadb5ab4f
6 changed files with 40 additions and 8 deletions

View File

@@ -560,6 +560,8 @@ var List = {
},
exportToSpotify: function() {
ga('send', 'event', "export", "spotify");
$.ajax({
type: "GET",
url: "https://api.spotify.com/v1/me",
@@ -742,6 +744,8 @@ var List = {
},
exportToYoutube: function() {
ga('send', 'event', "export", "youtube");
var request_url = "https://www.googleapis.com/youtube/v3/playlists?part=snippet";
$(".exported-list-container").removeClass("hide");
$("#playlist_loader_export").removeClass("hide");