feat: add analytics component

This commit is contained in:
Timothy Lin
2021-07-28 23:25:05 +08:00
parent 5707e6a186
commit 91d2d40144
6 changed files with 114 additions and 0 deletions

View File

@ -16,6 +16,12 @@ const siteMetadata = {
youtube: 'https://youtube.com',
linkedin: 'https://www.linkedin.com',
locale: 'en-US',
analytics: {
// supports plausible, simpleAnalytics or googleAnalytics
plausibleDataDomain: '', // e.g. tailwind-nextjs-starter-blog.vercel.app
simpleAnalytics: false, // true or false
googleAnalyticsId: '', // e.g. UA-000000-2 or G-XXXXXXX
},
comment: {
// Select a provider and use the environment variables associated to it
// https://vercel.com/docs/environment-variables