Skip to content

Integrations and privacy

Contact and newsletter forms post to the endpoint you configure. The endpoint must support a native form submission and return JSON with ok: true when it accepts a request made by the enhanced form. External endpoints need appropriate CORS headers. The site owner supplies delivery, validation, spam controls, and any credentials on the endpoint.

Analytics starts only when you configure a local adapter for the current mode and the visitor allows analytics. The adapter owns pageviews, event mapping, and provider behavior. Export a start() function that returns a cleanup function when tracking can be stopped.

A discussion requires an explicit content ID and destination. The direct link works without JavaScript. An optional summary loads after the visitor chooses to open it. The supplied adapter interface consumes public projection data. DiscussionBridge continues to own the discussion and its policies.

External media loads after a visitor chooses to open it. Appearance and privacy choices are available in the footer. Review the sample policy and cookie pages before publishing.

The current template also supports the shared Analytics SDK through analytics.config.ts. Its shipped providers: false sends no tracking. Configure your own IDs, use deferred or external consent, and enable production injection with SITE_ANALYTICS=1. The existing privacy dialog restores and forwards the visitor’s analytics choice through the SDK setConsent() API. Keep private previews disabled. Use either the older local adapter or the SDK for a given provider, never both. See build updates for the package-owned refresh command.