Skip to content

Commit ec77a58

Browse files
authored
Revert "Ganalytics (#322)" (#323)
This reverts commit f6d3d4b.
1 parent f6d3d4b commit ec77a58

File tree

3 files changed

+1
-19
lines changed

3 files changed

+1
-19
lines changed

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@
5757
"evergreen-ui": "^4.28.0",
5858
"flowgen": "^1.14.1",
5959
"formik": "^2.2.9",
60-
"ganalytics": "^3.1.3",
6160
"generate-schema": "^2.6.0",
6261
"gofmt.js": "^0.0.2",
6362
"graphql": "^15.5.1",

pages/_app.tsx

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,13 @@ import React, { useEffect } from "react";
22
import { Button, Pane } from "evergreen-ui";
33
import Navigator from "@components/Navigator";
44
import "@styles/main.css";
5-
import Ganalytics from "ganalytics";
65

76
import NProgress from "nprogress";
87
import Router, { useRouter } from "next/router";
98
import { activeRouteData } from "@utils/routes";
109
import Head from "next/head";
1110
import { Meta } from "@components/Meta";
1211

13-
let ga;
14-
if (typeof window !== "undefined") {
15-
// @ts-ignore
16-
ga = Ganalytics("UA-60624235-8", { aid: 1 });
17-
}
18-
1912
const logo = (
2013
<svg
2114
xmlns="http://www.w3.org/2000/svg"
@@ -40,8 +33,6 @@ const logo = (
4033
export default function App(props) {
4134
const router = useRouter();
4235

43-
useEffect(() => {}, []);
44-
4536
useEffect(() => {
4637
let timer;
4738

@@ -50,10 +41,7 @@ export default function App(props) {
5041
NProgress.done();
5142
};
5243

53-
const startProgress = () => {
54-
ga.send("pageview");
55-
return NProgress.start();
56-
};
44+
const startProgress = () => NProgress.start();
5745

5846
const showProgressBar = () => {
5947
timer = setTimeout(startProgress, 300);

yarn.lock

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4642,11 +4642,6 @@ fuzzaldrin-plus@^0.6.0:
46424642
resolved "https://registry.yarnpkg.com/fuzzaldrin-plus/-/fuzzaldrin-plus-0.6.0.tgz#832f6489fbe876769459599c914a670ec22947ee"
46434643
integrity sha1-gy9kifvodnaUWVmckUpnDsIpR+4=
46444644

4645-
ganalytics@^3.1.3:
4646-
version "3.1.3"
4647-
resolved "https://registry.yarnpkg.com/ganalytics/-/ganalytics-3.1.3.tgz#523e41d73eef8fff9dabd29e93a3a59e01871ca7"
4648-
integrity sha512-A+cqBDJgT2ELZlJKF31fEhPGnMw1dVPeUyjaMv66l33dFu4du7QmXbrzXqblCOx/EyhONWx/vBbkUnJ5QpHpOA==
4649-
46504645
generate-schema@^2.6.0:
46514646
version "2.6.0"
46524647
resolved "https://registry.yarnpkg.com/generate-schema/-/generate-schema-2.6.0.tgz#9ac037550fd4243783a9f7681d39bee8870bcec2"

0 commit comments

Comments
 (0)