Skip to content

Commit

Permalink
[FEAT] Web Analytics 추가 (#27)
Browse files Browse the repository at this point in the history
사용자 행동 분석을 위한 Analytics 추가하였습니다. 
- 다음과 같은 사항을 확인할 수 있습니다. 
  - 사이트 방문자 수
  - 페이지 뷰
  - 사용자 통계
    - 사용자의 나라 통계
    - 사용하는 OS
    - 사용하는 브라우저
  • Loading branch information
geongyu09 authored May 16, 2024
2 parents 483ca43 + 77c13f1 commit 12784fa
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 0 deletions.
1 change: 1 addition & 0 deletions FE/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"@tanstack/react-query-devtools": "^5.28.14",
"@types/qs": "^6.9.10",
"@types/react-syntax-highlighter": "^15.5.11",
"@vercel/analytics": "^1.2.2",
"axios": "^1.6.2",
"classnames": "^2.3.2",
"jotai": "^2.6.0",
Expand Down
23 changes: 23 additions & 0 deletions FE/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions FE/src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { Analytics } from "@vercel/analytics/react";
import type { Metadata } from "next";
import "./globals.css";
import { PropsWithChildren } from "react";
Expand All @@ -24,6 +25,7 @@ export default function RootLayout({ children }: PropsWithChildren) {
<html lang="ko">
<body className="flex flex-col items-center">
<Provider>{children}</Provider>
<Analytics />
</body>
</html>
);
Expand Down

0 comments on commit 12784fa

Please sign in to comment.