Skip to content

Commit

Permalink
chore: remove analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
tnrdd committed Nov 18, 2024
1 parent 65b8045 commit 4fee9ba
Show file tree
Hide file tree
Showing 11 changed files with 3 additions and 87 deletions.
1 change: 0 additions & 1 deletion .env.mainnet
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ VITE_WORLD_BLOCK_NUMBER =
VITE_SPATIAL_DOMAIN = "https://geoweb.app/"
VITE_GRAPH_URI=https://gateway-arbitrum.network.thegraph.com/api/6f359a9519137a5048fdc3d24f78f630/subgraphs/id/4DC8D9kNX7sw8ayCNgsWUNcHtJvQiDTwKTkWudWDowKC
VITE_SSX_HOST = https://ssx.geoweb.network
VITE_ANALYTICS_ID = geoweb.land
VITE_REFERRAL_HOST = https://referral.geoweb.network
VITE_WALLET_CONNECT_PROJECT_ID = ed360fa2058a62cd7828610800e21c86
VITE_TRANSAK_API_KEY = bf22a0d4-0492-44bd-9e32-a6030c14996e
Expand Down
1 change: 0 additions & 1 deletion .env.testnet
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ VITE_WORLD_BLOCK_NUMBER = 6992231
VITE_SPATIAL_DOMAIN = "https://testnet.geoweb.app/"
VITE_GRAPH_URI=https://gateway-arbitrum.network.thegraph.com/api/6f359a9519137a5048fdc3d24f78f630/subgraphs/id/Dv2u1QabAxCxjN59putrh24pLPuBCy8PidbEc4fZBFAo
VITE_SSX_HOST = https://ssx-stg.geoweb.network
VITE_ANALYTICS_ID =
VITE_REFERRAL_HOST = https://referral-stg.geoweb.network
VITE_WALLET_CONNECT_PROJECT_ID = ed360fa2058a62cd7828610800e21c86
VITE_TRANSAK_API_KEY = bf22a0d4-0492-44bd-9e32-a6030c14996e
Expand Down
3 changes: 0 additions & 3 deletions global.d.ts

This file was deleted.

12 changes: 0 additions & 12 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,18 +40,6 @@
name="twitter:image"
content="https://opengraph.b-cdn.net/production/documents/95bf2f0d-ac52-4100-ab15-76fb07c8ad20.png?token=J2AJyyxBeGJ9ye0igp82DDvUVFPGfs5_1uBK5aDGzD0&height=615&width=1200&expires=33244229630"
/>
<script
defer
data-domain="%VITE_ANALYTICS_ID%"
src="https://plausible.io/js/script.tagged-events.js"
></script>
<script>
window.plausible =
window.plausible ||
function () {
(window.plausible.q = window.plausible.q || []).push(arguments);
};
</script>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
Expand Down
5 changes: 1 addition & 4 deletions src/components/cadastre/ApproveButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -229,10 +229,7 @@ export function ApproveButton(props: ApproveButtonProps) {
<Button
variant={isAllowed || isActing ? "info" : "primary"}
className="w-100 mb-3"
onClick={() => {
submit();
window.plausible("ETHx Allowance Button");
}}
onClick={submit}
disabled={
isDisabled ||
!isReady ||
Expand Down
4 changes: 0 additions & 4 deletions src/components/cadastre/Map.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -946,10 +946,6 @@ function Map(props: MapProps) {
"claim-layer",
"claim-point-layer",
]);
window.plausible("Start a Claim");
break;
case STATE.CLAIM_SELECTED:
window.plausible("Confirm Shape");
break;
case STATE.PUBLISHING_NEW_MARKER:
setLastClickPoint(null);
Expand Down
8 changes: 1 addition & 7 deletions src/components/cadastre/PerformButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,7 @@ export function PerformButton(props: PerformButtonProps) {
!isAllowed ? "info" : buttonText === "Reject Bid" ? "danger" : "success"
}
className="w-100"
onClick={() => {
submit();

if (buttonText === "Claim") {
window.plausible("Submit Claim Button");
}
}}
onClick={submit}
disabled={isDisabled || !isAllowed}
>
{isActing ? spinner : buttonText}
Expand Down
1 change: 0 additions & 1 deletion src/components/cadastre/cards/ActionForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,6 @@ export function ActionForm(props: ActionFormProps) {

if (!selectedParcelId && licenseId) {
setSelectedParcelId(`0x${new BN(licenseId.toString()).toString(16)}`);
window.plausible("Successful Claim");
}

const didForSalePriceChange =
Expand Down
2 changes: 0 additions & 2 deletions src/components/governance/EditStream.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ import useSuperfluid from "../../hooks/superfluid";
import useTransactionsQueue from "../../hooks/transactionsQueue";
import useAllo from "../../hooks/allo";
import useRoundQuery from "../../hooks/roundQuery";
import { useDonationAnalyticsEvent } from "../../hooks/analyticsEvent";
import { passportDecoderAbi } from "../../lib/abi/passportDecoder";
import { calcMatchingImpactEstimate } from "../../lib/governance/matchingImpactEstimate";
import {
Expand Down Expand Up @@ -181,7 +180,6 @@ export default function EditStream(props: EditStreamProps) {
enabled: address ? true : false,
watch: false,
});
useDonationAnalyticsEvent(step, isFundingMatchingPool);

const minEthBalance = 0.001;
const suggestedTokenBalance = newFlowRate
Expand Down
8 changes: 1 addition & 7 deletions src/components/shared/ConnectWallet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,7 @@ export default function ConnectWallet(props: ConnectWalletProps) {
: "w-100 py-2"
}`}
disabled={!mounted || status === "connecting"}
onClick={() => {
if (openConnectModal) {
openConnectModal();
}

window.plausible("Connect Wallet");
}}
onClick={openConnectModal}
>
{variant === "header" && isMobile
? "Connect"
Expand Down
45 changes: 0 additions & 45 deletions src/hooks/analyticsEvent.ts

This file was deleted.

0 comments on commit 4fee9ba

Please sign in to comment.