analytics fix; incorrect path registered
Signed-off-by: Uncle Fatso <uncle.fatso@ghostchain.io>
This commit is contained in:
parent
c41da3195d
commit
3113810d5c
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "ghost-dao-interface",
|
"name": "ghost-dao-interface",
|
||||||
"private": true,
|
"private": true,
|
||||||
"version": "0.3.2",
|
"version": "0.3.3",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite",
|
"dev": "vite",
|
||||||
|
|||||||
@ -1,4 +1,5 @@
|
|||||||
import { useEffect, useState, useMemo, useCallback } from "react";
|
import { useEffect, useState, useMemo, useCallback } from "react";
|
||||||
|
import ReactGA from "react-ga4";
|
||||||
|
|
||||||
import {
|
import {
|
||||||
Box,
|
Box,
|
||||||
@ -154,6 +155,10 @@ const Bridge = ({ chainId, address, config, connect }) => {
|
|||||||
refetch: ghstBalanceRefetch
|
refetch: ghstBalanceRefetch
|
||||||
} = useBalance(chainId, "GHST", address);
|
} = useBalance(chainId, "GHST", address);
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
ReactGA.send({ hitType: "pageview", page: "/bridge" });
|
||||||
|
}, []);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
const interval = setInterval(() => {
|
const interval = setInterval(() => {
|
||||||
setRotation((prevRotation) => prevRotation > 0 ? 0 : 180)
|
setRotation((prevRotation) => prevRotation > 0 ? 0 : 180)
|
||||||
|
|||||||
@ -50,7 +50,7 @@ const WethWrapper = ({ chainId, address, config, connect }) => {
|
|||||||
const { symbol: faucetSymbol } = useTokenSymbol(chainId, "GDAI");
|
const { symbol: faucetSymbol } = useTokenSymbol(chainId, "GDAI");
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
ReactGA.send({ hitType: "pageview", page: "/faucet" });
|
ReactGA.send({ hitType: "pageview", page: "/wrapper" });
|
||||||
}, [])
|
}, [])
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user