On this page

Analytics

Add optional privacy-friendly analytics scripts to the built site.

analytics: { type: 'none' }

Supported adapters

analytics: {
  type: 'plausible',
  endpoint: 'https://plausible.io/js/script.js',
  siteId: 'example.com',
}
TypeNotes
nonedefault; no analytics script
plausiblePlausible-style script injection
fathomFathom-style script injection
umamiUmami script

Plausible

analytics: {
  type: 'plausible',
  endpoint: 'https://plausible.io/js/script.js',
  siteId: 'docs.example.com',
}

Fathom

analytics: {
  type: 'fathom',
  endpoint: 'https://cdn.usefathom.com/script.js',
  siteId: 'ABCDEFGH',
}

Umami

analytics: {
  type: 'umami',
  endpoint: 'https://analytics.example.com/script.js',
  siteId: '00000000-0000-0000-0000-000000000000',
}

TidyPress renders the script tag with the configured endpoint and site id.