Skip to content

Commit

Permalink
chore: rm metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
sterlingwes committed Jan 19, 2025
1 parent 92de45d commit 2473447
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 32 deletions.
2 changes: 0 additions & 2 deletions site/src/components/HomeDailyChart/HomeDailyChart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import styles from "./HomeDailyChart.styles.module.css";
import { Button } from "../Button";
import { useResourcePaths } from "@site/src/lib/resource-paths";
import { ApiResource } from "../../../../types/api.types";
import { trackClick } from "@site/src/lib/clicks";
import { HalfRadialProgress, radialProgressCircum } from "./HalfRadialProgress";

const numFmt = new Intl.NumberFormat();
Expand Down Expand Up @@ -90,7 +89,6 @@ export const HomeDailyChart = () => {
const onSliderChange = (e) => {
if (!tracked.current) {
tracked.current = true;
trackClick("chart-slider");
}

const { value } = e.target;
Expand Down
3 changes: 0 additions & 3 deletions site/src/components/KilledListExplorer/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import {
fetchIndex,
listSort,
} from "../../lib/search-index";
import { trackClick } from "@site/src/lib/clicks";

const hitsLimit = 100;

Expand Down Expand Up @@ -145,7 +144,6 @@ export const KilledListExplorer = () => {
searchClient.current.loadList(existingList, lang);
preventPageScroll();
setOpen(lang);
trackClick("search-btn", { lang, loaded: true });
return;
}

Expand All @@ -157,7 +155,6 @@ export const KilledListExplorer = () => {
setTotalCount(personList.length);
preventPageScroll();
setOpen(lang);
trackClick("search-btn", { lang, loaded: false });
} finally {
setLoading("idle");
}
Expand Down
5 changes: 0 additions & 5 deletions site/src/components/KilledName/KilledName.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import summary from "../../generated/summary.min.json";
import styles from "./KilledName.styles.module.css";
import { useEffect, useState } from "react";
import { Button } from "..";
import { trackClick } from "@site/src/lib/clicks";

let boyList = shuffle(names.lists.boy);
let girlList = shuffle(names.lists.girl);
Expand Down Expand Up @@ -71,8 +70,6 @@ const KilledNameCard = ({
return;
}

trackClick("killed-name", { id, name });

const filename = "tfp-names-behind-numbers.png";
setSharing(true);
const card = document.getElementById(id);
Expand Down Expand Up @@ -184,8 +181,6 @@ export const KilledName = () => {
{ name: nextBoy[0], count: adjust(nextBoy[1]) },
{ name: nextGirl[0], count: adjust(nextGirl[1]) },
]);

trackClick("killed-name-reload");
};

return (
Expand Down
22 changes: 0 additions & 22 deletions site/src/lib/clicks.ts

This file was deleted.

0 comments on commit 2473447

Please sign in to comment.