diff options
| -rw-r--r-- | package.json | 1 | ||||
| -rw-r--r-- | src/app.tsx | 14 | ||||
| -rw-r--r-- | src/components/Player/index.tsx | 5 | ||||
| -rw-r--r-- | src/components/Search/index.tsx | 7 | ||||
| -rw-r--r-- | src/index.tsx | 5 | ||||
| -rw-r--r-- | yarn.lock | 11 |
6 files changed, 0 insertions, 43 deletions
diff --git a/package.json b/package.json index 1f310cd..b425a68 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,6 @@ "prop-types": "^15.8.1", "react": "^17.0.2", "react-dom": "^17.0.2", - "react-ga": "^3.3.0", "react-icons": "^4.3.1", "react-is": "^18.2.0", "react-scripts": "^5.0.0", diff --git a/src/app.tsx b/src/app.tsx index d7f5917..ac8765f 100644 --- a/src/app.tsx +++ b/src/app.tsx @@ -1,5 +1,3 @@ -import { event } from "react-ga"; - import React from "react"; import _ from "lodash"; @@ -100,11 +98,6 @@ function App() { }); setCurrentTry((currentTry) => currentTry + 1); - - event({ - category: "Game", - action: "Skip", - }); }, [currentTry]); const guess = React.useCallback(() => { @@ -132,13 +125,6 @@ function App() { if (isCorrect) { setDidGuess(true); } - - event({ - category: "Game", - action: "Guess", - label: `${selectedSong.artist} - ${selectedSong.name}`, - value: isCorrect ? 1 : 0, - }); }, [guesses, selectedSong]); return ( diff --git a/src/components/Player/index.tsx b/src/components/Player/index.tsx index 82f600e..9e3d819 100644 --- a/src/components/Player/index.tsx +++ b/src/components/Player/index.tsx @@ -1,7 +1,6 @@ import React from "react"; import YouTube from "react-youtube"; import { IoPlay } from "react-icons/io5"; -import { event } from "react-ga"; import { playTimes } from "../../constants"; @@ -54,10 +53,6 @@ export function Player({ id, currentTry }: Props) { const startPlayback = React.useCallback(() => { playerRef.current?.internalPlayer.playVideo(); setPlay(true); - event({ - category: "Player", - action: "Played song", - }); }, []); const setReady = React.useCallback(() => { diff --git a/src/components/Search/index.tsx b/src/components/Search/index.tsx index 16f5c9e..c999f97 100644 --- a/src/components/Search/index.tsx +++ b/src/components/Search/index.tsx @@ -1,5 +1,4 @@ import React from "react"; -import { event } from "react-ga"; import { IoSearch } from "react-icons/io5"; import { searchSong } from "../../helpers"; import { Song } from "../../types/song"; @@ -38,12 +37,6 @@ export function Search({ currentTry, setSelectedSong }: Props) { setSelectedSong(song); setValue(`${song.artist} - ${song.name}`); setResults([]); - - event({ - category: "Player", - action: "Chose song", - label: `${song.artist} - ${song.name}`, - }); }} > <Styled.ResultText> diff --git a/src/index.tsx b/src/index.tsx index 6d3a377..e1b6a22 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -1,8 +1,3 @@ -import { initialize } from "react-ga"; - -const TRACKING_ID = "INSERT-YOUR-ID-HERE"; -initialize(TRACKING_ID); - import React from "react"; import ReactDOM from "react-dom"; import { ThemeProvider } from "styled-components"; @@ -10461,7 +10461,6 @@ __metadata: prop-types: ^15.8.1 react: ^17.0.2 react-dom: ^17.0.2 - react-ga: ^3.3.0 react-icons: ^4.3.1 react-is: ^18.2.0 react-scripts: ^5.0.0 @@ -11671,16 +11670,6 @@ __metadata: languageName: node linkType: hard -"react-ga@npm:^3.3.0": - version: 3.3.1 - resolution: "react-ga@npm:3.3.1" - peerDependencies: - prop-types: ^15.6.0 - react: ^15.6.2 || ^16.0 || ^17 || ^18 - checksum: 3026976d0249fbf80e7b5dad7707964198064d7ac460f3397de40524e76dd6c29dead0900f850e2bd3135a86a9b083af8cda9cfa087f195852bf8d2b17c1fcfb - languageName: node - linkType: hard - "react-icons@npm:^4.3.1": version: 4.9.0 resolution: "react-icons@npm:4.9.0" |
