Skip to content

Commit

Permalink
feat: Google Analyticsを追加
Browse files Browse the repository at this point in the history
  • Loading branch information
appare45 committed Apr 25, 2024
1 parent e91b75f commit a292d4b
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ jobs:
NEXT_PUBLIC_FIREBASE_STORAGE_BUCKET: ${{secrets.PROD_FIREBASE_STORAGE_BUCKET}}
NEXT_PUBLIC_SENTRY_DSN: ${{vars.SENTRY_DSN}}
NEXT_PUBLIC_SENTRY_PROJECT: ${{vars.SENTRY_PROJECT}}
NEXT_PUBLIC_GAID: ${{vars.GAID}}
- name: deploy
id: deploy
uses: whatacotton/pages-action@v1
Expand Down
19 changes: 18 additions & 1 deletion package-lock.json

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

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
},
"dependencies": {
"@hookform/resolvers": "^3.3.4",
"@next/third-parties": "^14.2.3",
"@radix-ui/themes": "^2.0.3",
"@sentry/nextjs": "^7.111.0",
"dayjs": "^1.11.10",
Expand Down
2 changes: 2 additions & 0 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import "./globals.css";
import "@radix-ui/themes/styles.css";
import { Toaster } from "react-hot-toast";
import { ApplicationPeriodProvider } from "./ApplicationPeriodProvider";
import { GoogleAnalytics } from "@next/third-parties/google";

export const metadata: Metadata = {
title: "雙峰祭オンラインシステム",
Expand All @@ -24,6 +25,7 @@ export default function RootLayout({
<ApplicationPeriodProvider>
<AuthProvider>{children}</AuthProvider>
</ApplicationPeriodProvider>
<GoogleAnalytics gaId={process.env.NEXT_PUBLIC_GAID ?? ""} />
</body>
</html>
);
Expand Down

0 comments on commit a292d4b

Please sign in to comment.