analytics fix; incorrect path registered

Signed-off-by: Uncle Fatso <uncle.fatso@ghostchain.io>
This commit is contained in:
Uncle Fatso 2025-11-03 13:42:33 +03:00
parent c41da3195d
commit 3113810d5c
Signed by: f4ts0
GPG Key ID: 565F4F2860226EBB
3 changed files with 7 additions and 2 deletions

View File

@ -1,7 +1,7 @@
{
"name": "ghost-dao-interface",
"private": true,
"version": "0.3.2",
"version": "0.3.3",
"type": "module",
"scripts": {
"dev": "vite",

View File

@ -1,4 +1,5 @@
import { useEffect, useState, useMemo, useCallback } from "react";
import ReactGA from "react-ga4";
import {
Box,
@ -154,6 +155,10 @@ const Bridge = ({ chainId, address, config, connect }) => {
refetch: ghstBalanceRefetch
} = useBalance(chainId, "GHST", address);
useEffect(() => {
ReactGA.send({ hitType: "pageview", page: "/bridge" });
}, []);
useEffect(() => {
const interval = setInterval(() => {
setRotation((prevRotation) => prevRotation > 0 ? 0 : 180)

View File

@ -50,7 +50,7 @@ const WethWrapper = ({ chainId, address, config, connect }) => {
const { symbol: faucetSymbol } = useTokenSymbol(chainId, "GDAI");
useEffect(() => {
ReactGA.send({ hitType: "pageview", page: "/faucet" });
ReactGA.send({ hitType: "pageview", page: "/wrapper" });
}, [])
useEffect(() => {