Skip to content

Commit

Permalink
config fathom in project
Browse files Browse the repository at this point in the history
  • Loading branch information
ribeirojose committed Mar 6, 2024
1 parent 3d3dba0 commit e19f428
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions apps/cow-amm-deployer/src/components/Fathom.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import { load, trackPageview } from "fathom-client";
import { usePathname, useSearchParams } from "next/navigation";
import { Suspense, useEffect } from "react";

const appUrl = "balancer-tools.bleu.fi";
const fathomId = "HLWGNXQK";
const appUrl = "deploy-cow-amm.bleu.fi";
const fathomId = "VYHECOUI";

function TrackPageView() {
const pathname = usePathname();
Expand Down
4 changes: 3 additions & 1 deletion apps/cow-amm-deployer/src/components/HomeWrapper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import Image from "next/image";

import { Button } from "./Button";
import { LinkComponent } from "./Link";
import Fathom from "./Fathom";

export function HomeWrapper({
isAmmRunning,
Expand All @@ -22,7 +23,7 @@ export function HomeWrapper({
if (typeof window === "undefined") return null;

const currentHref = encodeURIComponent(
window.location.href.split("/").slice(0, 3).join("/"),
window.location.href.split("/").slice(0, 3).join("/")
);

return (
Expand Down Expand Up @@ -59,6 +60,7 @@ export function HomeWrapper({
</Button>
}
/>
<Fathom />
</div>
</div>
);
Expand Down

0 comments on commit e19f428

Please sign in to comment.