Stats: ipalKit({ stats: true }) adds the stats-visits collection, POST /api/ipal/hit, the
/admin/stats view (30-day visits chart, top/entry pages, referrers, devices), a dashboard card
and a nav link. <PageStats> (or <SiteProviders stats>) sends one beacon per page view. Without
consent nothing is stored on the device and no IP is kept: page views are joined by a hash with
an in-memory salt replaced daily. With analytics consent an ipal_vid cookie links visits across
days (server re-checks the consent cookie and policy version; withdrawal deletes the cookie).
Bots, logged-in panel users and prefetches aren't counted. Retention 90 days.
@payloadcms/next added to peerDependencies (DefaultTemplate). Docs: stats.md with privacy text.
Also in this release: meta.description auto-filled from page blocks, <NoSnippet>,
MetaDescriptionCheck in the SEO tab, data-nosnippet on banner/language switcher, GA4 CSP
wildcards, consent version passed to Analytics' default consent.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
6 lines
357 B
TypeScript
6 lines
357 B
TypeScript
// Server-safe: collection + hit endpoint (wired by ipalKit({ stats })). <PageStats>
|
|
// is client-side (./client); the admin view and dashboard card are in /admin.
|
|
export { buildStatsCollection, STATS_SLUG } from './collection.js'
|
|
export type { StatsOptions, StatsPage, StatsVisit } from './collection.js'
|
|
export { buildStatsEndpoint } from './endpoint.js'
|