diff --git a/src/config/index.tsx b/src/config/index.tsx
index f29686c..45abca6 100644
--- a/src/config/index.tsx
+++ b/src/config/index.tsx
@@ -1,14 +1,7 @@
import * as React from "react";
import ReactDOM from "react-dom";
-import "../utils/gaInit";
import Root from "./components/Root";
import store from "./store";
-ga("create", "UA-81509238-9", {
- cookieFlags: "max-age=7200;secure;samesite=none",
-});
-ga("set", "anonymizeIp", true);
-ga("send", "pageview", "/config.html");
-
const rootElement = document.getElementById("root");
ReactDOM.render(, rootElement);
diff --git a/src/utils/ga.ts b/src/utils/ga.ts
deleted file mode 100644
index 28db912..0000000
--- a/src/utils/ga.ts
+++ /dev/null
@@ -1,21 +0,0 @@
-interface GA {
- l: number;
- q: any[];
-
- (command: "create", trackingId: string, options?: object): void;
-
- (
- command: "send",
- hitType: "event",
- eventCategory: string,
- eventAction: string,
- eventLabel?: string,
- eventValue?: number,
- ): void;
-
- (command: "send", hitType: "pageview", page: string): void;
-
- (command: "set", hitType: "anonymizeIp", value: boolean): void;
-}
-
-declare let ga: GA;
diff --git a/src/utils/gaInit.js b/src/utils/gaInit.js
deleted file mode 100644
index 9f61476..0000000
--- a/src/utils/gaInit.js
+++ /dev/null
@@ -1,5 +0,0 @@
-// prettier-ignore
-(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
-(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
-m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
-})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
diff --git a/src/viewer/Entity.tsx b/src/viewer/Entity.tsx
index ab7b5b4..f0e5b38 100644
--- a/src/viewer/Entity.tsx
+++ b/src/viewer/Entity.tsx
@@ -71,17 +71,6 @@ class Entity extends React.Component {
if (prevState.isHovering && !this.state.isHovering) {
this.setState({ isMeaningfulHover: false });
}
- if (
- this.state.isHovering &&
- !prevState.isMeaningfulHover &&
- this.state.isMeaningfulHover
- ) {
- if (this.props.dbfId) {
- ga("send", "event", "Overlay", "Hover Card", String(this.props.dbfId));
- } else {
- ga("send", "event", "Overlay", "Hover Card");
- }
- }
}
public componentWillUnmount(): void {
diff --git a/src/viewer/mobile/Panel.tsx b/src/viewer/mobile/Panel.tsx
index f6e724b..ca7cc07 100644
--- a/src/viewer/mobile/Panel.tsx
+++ b/src/viewer/mobile/Panel.tsx
@@ -7,19 +7,11 @@ import {
BoardStatePlayer,
EBSConfiguration,
} from "../../twitch-hdt";
-import {
- Feature,
- hasFeature,
- OverlayPosition,
- WhenToShowBobsBuddy,
-} from "../../utils/config";
+import { Feature, hasFeature, WhenToShowBobsBuddy } from "../../utils/config";
import { PortalProvider } from "../../utils/portal";
import { TwitchExtProps, withTwitchExt } from "../../utils/twitch";
-import CopyDeckButton, {
- CopyDeckButtonChild,
- CopyDeckButtonChildProps,
-} from "../CopyDeckButton";
-import { CopyDeckIcon, HSReplayNetIcon } from "../icons";
+import CopyDeckButton, { CopyDeckButtonChildProps } from "../CopyDeckButton";
+import { HSReplayNetIcon } from "../icons";
import BobsBuddy from "../overlay/BobsBuddy";
import { TooltipBehaviour, TooltipProvider } from "../utils/tooltips";
import CardList from "./CardList";
@@ -357,10 +349,6 @@ class Panel extends React.Component {
this.setState({ timedOut: true });
}, 30 * 1000);
}
-
- private onCopy = () => {
- ga("send", "event", "Deck", "Copy", "Mobile");
- };
}
export default withTwitchExt(Panel);
diff --git a/src/viewer/mobile/index.tsx b/src/viewer/mobile/index.tsx
index 7a9d3e3..a6e6be5 100644
--- a/src/viewer/mobile/index.tsx
+++ b/src/viewer/mobile/index.tsx
@@ -4,7 +4,6 @@ import {
CardsProvider,
getHearthstoneLocaleFromTwitchLocale,
} from "../../utils/cards";
-import "../../utils/gaInit";
import {
TwitchExtConsumer,
TwitchExtConsumerArgs,
@@ -12,12 +11,6 @@ import {
} from "../../utils/twitch";
import Root from "./Root";
-ga("create", "UA-81509238-9", {
- cookieFlags: "max-age=7200;secure;samesite=none",
-});
-ga("set", "anonymizeIp", true);
-ga("send", "pageview", "/mobile.html");
-
const rootElement = document.getElementById("root");
ReactDOM.render(
diff --git a/src/viewer/overlay/DeckList.tsx b/src/viewer/overlay/DeckList.tsx
index 17c110d..eb124f4 100644
--- a/src/viewer/overlay/DeckList.tsx
+++ b/src/viewer/overlay/DeckList.tsx
@@ -259,7 +259,7 @@ class DeckList extends React.Component<
position={this.props.position}
>
-
+
{({
disabled,
copied,
@@ -312,7 +312,6 @@ class DeckList extends React.Component<
) {
e.currentTarget.blur();
}
- ga("send", "event", "Deck", "Hide");
}}
onMouseDown={this.stopPropagation}
title="Automatically hide deck list"
@@ -331,7 +330,6 @@ class DeckList extends React.Component<
if (target && typeof target.blur === "function") {
target.blur();
}
- ga("send", "event", "Deck", "Show");
}}
onMouseDown={this.stopPropagation}
title="Keep deck list visible"
@@ -392,10 +390,6 @@ class DeckList extends React.Component<
return;
}
}
-
- private static onCopy() {
- ga("send", "event", "Deck", "Copy", "Overlay");
- }
}
export default withTwitchExt(withCards(DeckList));
diff --git a/src/viewer/overlay/index.tsx b/src/viewer/overlay/index.tsx
index 9a87735..a6e6be5 100644
--- a/src/viewer/overlay/index.tsx
+++ b/src/viewer/overlay/index.tsx
@@ -4,7 +4,6 @@ import {
CardsProvider,
getHearthstoneLocaleFromTwitchLocale,
} from "../../utils/cards";
-import "../../utils/gaInit";
import {
TwitchExtConsumer,
TwitchExtConsumerArgs,
@@ -12,12 +11,6 @@ import {
} from "../../utils/twitch";
import Root from "./Root";
-ga("create", "UA-81509238-9", {
- cookieFlags: "max-age=7200;secure;samesite=none",
-});
-ga("set", "anonymizeIp", true);
-ga("send", "pageview", "/overlay.html");
-
const rootElement = document.getElementById("root");
ReactDOM.render(