Skip to content

Commit

Permalink
update naming convention for gtags and test
Browse files Browse the repository at this point in the history
  • Loading branch information
dsmooot committed Oct 20, 2024
1 parent 9f90623 commit 84f6900
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/nextjs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
3 changes: 3 additions & 0 deletions src/components/dom/common/Layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ const NavigationEventHandler = () => {
}

const Layout = ({ children }) => {
useEffect(() => {
console.log('TEST -> GTAG:', process.env.NEXT_PUBLIC_GOOGLE_ANALYTICS_ID)
}, [])
return (
<Suspense fallback={null}>
<Providers>
Expand Down

0 comments on commit 84f6900

Please sign in to comment.