Skip to main content

Module collect

Module collect 

Source
Expand description

Public analytics collector — POST /__cms__/collect.

Receives the beacon JSON (via navigator.sendBeacon), enriches it server-side (country from a CDN header, device/browser/OS from the User-Agent), and appends one cms_analytics_event row. Always returns 204 + Cache-Control: no-store. Bots, prefetches, and Do-Not-Track / Global-Privacy-Control requests are silently dropped. No raw IP is stored.