Skip to content

Commit

Permalink
Add: test code
Browse files Browse the repository at this point in the history
  • Loading branch information
su-u committed Nov 18, 2023
1 parent 6dbeefa commit 95b8791
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/common/GoogleAnalytics.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,12 @@ const GoogleAnalytics: FC = () => {
const searchParams = useSearchParams();

useEffect(() => {
console.log(existsGaId);
if (!existsGaId) {
return;
}
const url = pathname + searchParams.toString();
console.log(url);
pageview(url);
}, [pathname, searchParams]);

Expand Down

1 comment on commit 95b8791

@vercel
Copy link

@vercel vercel bot commented on 95b8791 Nov 18, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

tools-su-u-dev – ./

tools-su-u-dev-su-u.vercel.app
tools-su-u-dev-git-main-su-u.vercel.app
tools-su-u-dev.vercel.app
tools.su-u.dev

Please sign in to comment.