diff --git a/app/components/Chessguessr.tsx b/app/components/Chessguessr.tsx index 03c9a20..f1f2663 100644 --- a/app/components/Chessguessr.tsx +++ b/app/components/Chessguessr.tsx @@ -18,6 +18,7 @@ import { } from "~/utils/utils"; import useCopyToClipboard from "~/hooks/useCopyToClipboard"; import { Tile } from "~/styles/styles"; +import { useOutletContext } from "@remix-run/react"; const ChessboardWrapper = styled.div` display: flex; @@ -140,6 +141,8 @@ export const Chessguessr = ({ useHotkeys("Enter", submitGuess, [currentGuess]); useHotkeys("Space", submitGuess, [currentGuess]); + const { trackEvent }: any = useOutletContext(); + return (
@@ -161,8 +164,30 @@ export const Chessguessr = ({ />
+
+
+ { + trackEvent("Click Chess Prophet"); + }} + > + Sponsored by Chess Prophet + + Predict game results and win prizes   + + +
+
+ -
Test

{wTitle && (