diff --git a/packages/web/package.json b/packages/web/package.json index 53425212..8faa0a88 100644 --- a/packages/web/package.json +++ b/packages/web/package.json @@ -29,7 +29,6 @@ "random": "^3.0.6", "react": "^18.2.0", "react-dom": "^18.2.0", - "react-ga": "^3.3.1", "react-i18next": "^11.18.6", "react-markdown": "^8.0.3", "react-typist": "^2.0.5", diff --git a/packages/web/public/index.html b/packages/web/public/index.html index b657d83a..3aee10ee 100644 --- a/packages/web/public/index.html +++ b/packages/web/public/index.html @@ -1,65 +1,52 @@ - - - - - - - - - - poi | KanColle Browser | 舰娘专用浏览器 | 艦これ専ブラ - - - -
- + + + + poi | KanColle Browser | 舰娘专用浏览器 | 艦これ専ブラ + + + + +
+ + + + + - To begin the development, run `npm start` or `yarn start`. - To create a production bundle, use `npm run build` or `yarn build`. - --> - - diff --git a/packages/web/src/pages/_app.tsx b/packages/web/src/pages/_app.tsx index 5a73056d..e4ca0e8f 100644 --- a/packages/web/src/pages/_app.tsx +++ b/packages/web/src/pages/_app.tsx @@ -1,13 +1,11 @@ import { AppProps } from 'next/app' import dynamic from 'next/dynamic' -import { FC, useReducer, useEffect } from 'react' +import { FC, useReducer } from 'react' import styled, { createGlobalStyle, ThemeProvider } from 'styled-components' import classNames from 'classnames' import { config } from '@fortawesome/fontawesome-svg-core' import * as Sentry from '@sentry/browser' import Head from 'next/head' -import ReactGA from 'react-ga' -import Router from 'next/router' import { darkTheme, @@ -30,11 +28,6 @@ if (process.env.NODE_ENV === 'production') { }) } -const logPageView = () => { - ReactGA.set({ page: window.location.pathname }) - ReactGA.pageview(window.location.pathname) -} - const FoucFix = dynamic( () => import('../components/no-ssr/fouc-fix').then((mod) => mod.FoucFix), { ssr: false }, @@ -110,12 +103,6 @@ const App: FC = ({ Component, pageProps }) => { true, ) - useEffect(() => { - ReactGA.initialize('UA-83274947-1') - logPageView() - Router.events.on('routeChangeComplete', logPageView) - }, []) - return ( diff --git a/yarn.lock b/yarn.lock index 5a93acc5..7b9cbfa7 100644 --- a/yarn.lock +++ b/yarn.lock @@ -12551,11 +12551,6 @@ react-element-to-jsx-string@^14.3.4: is-plain-object "5.0.0" react-is "17.0.2" -react-ga@^3.3.1: - version "3.3.1" - resolved "https://registry.yarnpkg.com/react-ga/-/react-ga-3.3.1.tgz#d8e1f4e05ec55ed6ff944dcb14b99011dfaf9504" - integrity sha512-4Vc0W5EvXAXUN/wWyxvsAKDLLgtJ3oLmhYYssx+YzphJpejtOst6cbIHCIyF50Fdxuf5DDKqRYny24yJ2y7GFQ== - react-i18next@^11.18.6: version "11.18.6" resolved "https://registry.yarnpkg.com/react-i18next/-/react-i18next-11.18.6.tgz#e159c2960c718c1314f1e8fcaa282d1c8b167887"