761d72fbc0
## Documentation / Examples - [X] Make sure the linting passes Adding a [Plausible](https://plausible.io/) example for a google analytics alternative. |
||
---|---|---|
.. | ||
components | ||
pages | ||
.env.local.example | ||
.gitignore | ||
package.json | ||
README.md |
Example app with Plausible
This example shows how to use Next.js along with Plausible via the next-plausible package. A custom _app.js is used to wrap our app with the PlausibleProvider
to track page views and custom events are shown as well.
Deploy your own
Deploy the example using Vercel:
How to use
Execute create-next-app
with npm or Yarn to bootstrap the example::
npx create-next-app --example with-plausible with-plausible-app
# or
yarn create next-app --example with-plausible with-plausible-app
Deploy it to the cloud with Vercel (Documentation).