From 84f6900751f31b16d296932c551947b3bb6e9a6c Mon Sep 17 00:00:00 2001 From: dsmooot Date: Sun, 20 Oct 2024 17:24:47 -0300 Subject: [PATCH] update naming convention for gtags and test --- .github/workflows/nextjs.yml | 2 +- src/components/dom/common/Layout.tsx | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/nextjs.yml b/.github/workflows/nextjs.yml index 1dc188b..8fce08b 100644 --- a/.github/workflows/nextjs.yml +++ b/.github/workflows/nextjs.yml @@ -76,7 +76,7 @@ jobs: - name: Build with Next.js run: ${{ steps.detect-package-manager.outputs.runner }} next build env: - NEXT_PUBLIC_GOOGLE_ANALYTICS_ID: ${{ secrets.GTAG_ID }} + NEXT_PUBLIC_GOOGLE_ANALYTICS_ID: ${{ secrets.NEXT_PUBLIC_GOOGLE_ANALYTICS_ID }} - name: Upload artifact uses: actions/upload-pages-artifact@v3 with: diff --git a/src/components/dom/common/Layout.tsx b/src/components/dom/common/Layout.tsx index 6c7ee8e..e51af9a 100644 --- a/src/components/dom/common/Layout.tsx +++ b/src/components/dom/common/Layout.tsx @@ -35,6 +35,9 @@ const NavigationEventHandler = () => { } const Layout = ({ children }) => { + useEffect(() => { + console.log('TEST -> GTAG:', process.env.NEXT_PUBLIC_GOOGLE_ANALYTICS_ID) + }, []) return (