Built-in statistics (cookieless, consent-gated visitor history); per-page meta descriptions, NoSnippet
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]>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
305c564d13
commit
4ec27d9ef0
@@ -18,6 +18,7 @@ import type { FormsOption } from './modules/forms/types.js'
|
||||
import type { I18nConfig } from './modules/i18n/types.js'
|
||||
import type { PagesOption } from './modules/pages/types.js'
|
||||
import type { SeoOption } from './modules/seo/types.js'
|
||||
import type { StatsOptions } from './modules/stats/collection.js'
|
||||
|
||||
/**
|
||||
* Configuration options for the IPAL plugin.
|
||||
@@ -96,6 +97,16 @@ export type IpalOptions = {
|
||||
/** Additional fields injected into SiteSettings global */
|
||||
siteSettingsFields?: Field[]
|
||||
|
||||
/**
|
||||
* Built-in statistics (docs/stats.md): the `stats-visits` collection,
|
||||
* POST /api/ipal/hit, the /admin/stats view and a 30-day chart on the
|
||||
* dashboard. The site mounts <PageStats> inside <ConsentProvider>.
|
||||
* Cookieless and IP-free for everyone; visitors who accept analytics cookies
|
||||
* also get a history across days. `true` or `{ retentionDays, timeZone,
|
||||
* dashboard }`. Default off.
|
||||
*/
|
||||
stats?: boolean | StatsOptions
|
||||
|
||||
/**
|
||||
* Two-factor authentication (TOTP), ENFORCED for every user. Wires
|
||||
* @clocklimited/payload-2fa with forceSetup — no per-project opt-out. Every
|
||||
|
||||
Reference in New Issue
Block a user