update pliny and use new analytics setup with umami

This commit is contained in:
Timothy Lin
2023-07-23 22:21:26 +08:00
parent 1e19247ae1
commit 343e1a921a
5 changed files with 23 additions and 14 deletions

View File

@ -21,12 +21,21 @@ const siteMetadata = {
analytics: {
// If you want to use an analytics provider you have to add it to the
// content security policy in the `next.config.js` file.
// supports plausible, simpleAnalytics, umami or googleAnalytics
plausibleDataDomain: '', // e.g. tailwind-nextjs-starter-blog.vercel.app
simpleAnalytics: false, // true or false
umamiWebsiteId: '', // e.g. 123e4567-e89b-12d3-a456-426614174000
posthogProjectApiKey: '', // e.g. AhnJK8392ndPOav87as450xd
googleAnalyticsId: '', // e.g. UA-000000-2 or G-XXXXXXX
// supports Plausible, Simple Analytics, Umami, Posthog or Google Analytics.
plausibleAnalytics: {
plausibleDataDomain: '', // e.g. tailwind-nextjs-starter-blog.vercel.app
},
simpleAnalytics: {},
umamiAnalytics: {
// We use an env variable for this site to avoid other users cloning our analytics ID
umamiWebsiteId: process.env.NEXT_UMAMI_ID, // e.g. 123e4567-e89b-12d3-a456-426614174000
},
posthogAnalytics: {
posthogProjectApiKey: '', // e.g. 123e4567-e89b-12d3-a456-426614174000
},
googleAnalytics: {
googleAnalyticsId: '', // e.g. G-XXXXXXX
},
},
newsletter: {
// supports mailchimp, buttondown, convertkit, klaviyo, revue, emailoctopus