Skip to content

Commit

Permalink
update: Google Tag Managerに変更
Browse files Browse the repository at this point in the history
  • Loading branch information
appare45 committed Apr 26, 2024
1 parent a292d4b commit 3ca6965
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +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}}
NEXT_PUBLIC_GTMID: ${{vars.GTMID}}
- name: deploy
id: deploy
uses: whatacotton/pages-action@v1
Expand Down
4 changes: 2 additions & 2 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +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";
import { GoogleTagManager } from "@next/third-parties/google";

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

0 comments on commit 3ca6965

Please sign in to comment.