aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/app.tsx14
-rw-r--r--src/components/Player/index.tsx5
-rw-r--r--src/components/Search/index.tsx7
-rw-r--r--src/index.tsx5
4 files changed, 0 insertions, 31 deletions
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";
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage