vercel/next.js / examples / with-google-analytics / README.md
The React Framework
README.md
Example app with analytics
This example shows how to use Next.js along with Google Analytics 4.
If you are using the Pages Router, please refer to the pages/ documentation.
Deploy your own
How to use
Execute create-next-app with npm, Yarn, or pnpm to bootstrap the example:
npx create-next-app --example with-google-analytics with-google-analytics-app
yarn create next-app --example with-google-analytics with-google-analytics-app
pnpm create next-app --example with-google-analytics with-google-analytics-app
Deploy it to the cloud with Vercel (Documentation).
Rendered from the public repository vercel/next.js on GitHub; content belongs to its authors. Cached for up to an hour.