Skip to content

Commit

Permalink
update events
Browse files Browse the repository at this point in the history
  • Loading branch information
tknickman committed Feb 27, 2024
1 parent 11ac0d5 commit 5c57fdb
Show file tree
Hide file tree
Showing 4 changed files with 75 additions and 469 deletions.
5 changes: 2 additions & 3 deletions apps/info/components/Item.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import { trackGoal } from "fathom-client";
import { trackEvent } from "fathom-client";
import clsx from "clsx";

import { LinkItem } from "../config";
import goals from "../lib/fathomGoals";
import Anchor from "./Anchor";
import Button from "./Button";

Expand All @@ -29,7 +28,7 @@ const Item = ({
<Element
href={linkItem.url}
onClick={() => {
trackGoal(goals[`${linkItem.key}Click` as keyof typeof goals], 0);
trackEvent(`${linkItem.key}`)

Check warning on line 31 in apps/info/components/Item.tsx

View check run for this annotation

Codecov / codecov/patch

apps/info/components/Item.tsx#L31

Added line #L31 was not covered by tests
if (linkItem.key === "portfolio") {
setShow(true);
}
Expand Down
15 changes: 0 additions & 15 deletions apps/info/lib/fathomGoals.ts

This file was deleted.

2 changes: 1 addition & 1 deletion apps/info/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"@tek/utils": "workspace:*",
"@vercel/analytics": "^0.1.11",
"clsx": "^1.2.0",
"fathom-client": "^3.5.0",
"fathom-client": "^3.6.0",
"next": "^13.4.4",
"next-seo": "^5.1.0",
"react": "^18.2.0",
Expand Down
Loading

0 comments on commit 5c57fdb

Please sign in to comment.