transitive-bullshit / nextjs-notion-starter-kit

Deploy your own Notion-powered website in minutes with Next.js and Vercel.
https://transitivebullsh.it/nextjs-notion-starter-kit
MIT License
6.21k stars 5.25k forks source link

Support Vercel Analytics #511

Open konhi opened 1 year ago

konhi commented 1 year ago

Description

Vercel Analytics is well-integrated with Next.js. We can easily integrate it to this starter, by:

  1. installing @vercel/analytics
  2. adding a config that enables analytics, e.g. enableVercelAnalytics: boolean
  3. adding {enableVercelAnalytics && <Analytics />} to _app.tsx

This is better than already existing solutions, because it doesn't require creating additional accounts. Their free plan is also generic, in comparison to Fathom, which doesn't have a free plan.

Let me know if you see value in that! ☺️