ixartz / Next-js-Boilerplate

🚀🎉📚 Boilerplate and Starter for Next.js 14+ with App Router and Page Router support, Tailwind CSS 3.4 and TypeScript ⚡️ Made with developer experience first: Next.js + TypeScript + ESLint + Prettier + Husky + Lint-Staged + Jest + Testing Library + Cypress + Storybook + Commitlint + VSCode + Netlify + PostCSS + Tailwind CSS

Home Page:https://nextjs-boilerplate.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Google Analytic

yudataguy opened this issue · comments

commented

added https://npmjs.com/package/nextjs-google-analytics, but getting error when adding to page.jsx, under return <>

<GoogleAnalytics trackPageViews gaMeasurementId="G-XYZ" />

any suggestion on where should it be placed instead?

Not really sure this is related to the boilerplate. The boilerplate didn't do anything special and you shouldn't getting error.