Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
cjy3458 committed Dec 13, 2023
1 parent 561cc7b commit a9f31f0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion src/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ function CauLikeLionNext({ Component, pageProps }: AppPropsWithLayout) {
<RecoilRoot>
<QueryClientProvider client={queryClient}>
<Head>
<GA />
<title>LikeLionCAU</title>
</Head>
{loading ? (
Expand Down
1 change: 1 addition & 0 deletions src/test/GA.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const GA = () => {
const handleRouteChange = (url: any) => {
gtag.pageview(url);
};

router.events.on('routeChangeComplete', handleRouteChange);
router.events.on('hashChangeComplete', handleRouteChange);
return () => {
Expand Down

0 comments on commit a9f31f0

Please sign in to comment.