Unverified Commit 15d1133b authored by Jam Balaya's avatar Jam Balaya Committed by GitHub

examples: update `with-plausible` README (#73305)

## Description

Follow up #73255.
A custom
[\_app.js](https://nextjs.org/docs/advanced-features/custom-app) is **no
more** used to wrap our app with the
[`PlausibleProvider`](https://github.com/4lejandrito/next-plausible#plausibleprovider-props).
Then delete it and convert
[Header.js](https://github.com/vercel/next.js/blob/canary/examples/with-plausible/_components/Header.js)
to Header.tsx alike other files.

CC: @samcx 

### Adding or Updating Examples

- [x] The "examples guidelines" are followed from our contributing doc
https://github.com/vercel/next.js/blob/canary/contributing/examples/adding-examples.md
- [x] Make sure the linting passes by running `pnpm build && pnpm lint`.
See
https://github.com/vercel/next.js/blob/canary/contributing/repository/linting.mdCo-authored-by: 's avatarSam Ko <sam@vercel.com>
parent f22066ac
# Example app with Plausible # Example app with Plausible
This example shows how to use [Next.js](https://github.com/vercel/next.js) along with [Plausible](https://plausible.io) via the [next-plausible](https://github.com/4lejandrito/next-plausible) package. A custom [\_app.js](https://nextjs.org/docs/advanced-features/custom-app) is used to wrap our app with the [`PlausibleProvider`](https://github.com/4lejandrito/next-plausible#plausibleprovider-props) to track page views and [custom events](https://github.com/4lejandrito/next-plausible#send-custom-events) are shown as well. This example shows how to use [Next.js](https://github.com/vercel/next.js) along with [Plausible](https://plausible.io) via the [next-plausible](https://github.com/4lejandrito/next-plausible) package. [`PlausibleProvider`](https://github.com/4lejandrito/next-plausible#plausibleprovider-props) inside the root layout tracks page views and [custom events](https://github.com/4lejandrito/next-plausible#send-custom-events) are shown as well.
## Deploy your own ## Deploy your own
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment