From 36ca6915a133c4151973b45b44fc5e306c20f248 Mon Sep 17 00:00:00 2001 From: Sam Bao Date: Thu, 8 Feb 2024 20:22:01 -0700 Subject: [PATCH] adding google analytics to measure website visits --- public/index.html | 50 ++++++++++++++++++------------- src/YourFavoriteSpotifyArtists.js | 4 +-- 2 files changed, 30 insertions(+), 24 deletions(-) diff --git a/public/index.html b/public/index.html index 2989de1..77ac835 100644 --- a/public/index.html +++ b/public/index.html @@ -1,21 +1,27 @@ - - - - - - - - + + + + + + + + + - - - Taver - - - -
- - - + + + \ No newline at end of file diff --git a/src/YourFavoriteSpotifyArtists.js b/src/YourFavoriteSpotifyArtists.js index 794ddd0..8ca781d 100644 --- a/src/YourFavoriteSpotifyArtists.js +++ b/src/YourFavoriteSpotifyArtists.js @@ -66,12 +66,10 @@ function YourFavoriteSpotifyArtists({ onChildClick, startDate, endDate }) { }, [code, codeVerifier]) let getSpotifyArtist = async () => { - - setDisableButton(true); //get access token var access_token = localStorage.getItem("access_token"); - if (access_token !== null) { + setDisableButton(true); //call setFollowedArtists await fetch(`${process.env.REACT_APP_BACKEND}/getFollowedArtists`, { method: 'POST',