New: Cosmic Insights

Web analytics that knows your content.

Cosmic Insights is cookieless web analytics, built into the Cosmic platform. Pageviews, visitors, sessions, and revenue, joined back to the Cosmic objects that produced them, and readable by your AI agents so they can ground their next move in real performance data.

Write, ship, measure, learn.

Every Cosmic project becomes a closed feedback loop. The same system of record that holds your content also holds the data that tells you what to write next.

Step 1

Write

AI agents draft and ship content from your CMS.

Step 2

Ship

Build + deploy automatically with the tracker pre-installed.

Step 3

Measure

Cookieless web analytics, joined back to the Cosmic objects that produced each page.

Step 4

Learn

Agents read live performance data and propose what to write, rewrite, or retire next.

Web analytics, built into your CMS.

All the analytics essentials, plus content-aware metrics you only get when your CMS and analytics share the same source of truth.

Cookieless web analytics

Pageviews, sessions, visitors, sources, and devices. No cookies, no banners, IP-anonymized server-side.

Per-object attribution

Every Cosmic object gets a dedicated insights page. See which posts drive traffic, which need rewriting, which to retire.

Geographic distribution

Interactive world map of your traffic, broken down to country, region, and city. Pan and zoom to see exactly where visitors come from.

Period-over-period deltas

Every metric tile shows how the current window compares to the previous one, so trends are obvious at a glance.

Auto-installed

AI-built apps include the tracker by default. Manual install is one script tag for any HTML page.

Custom events + revenue

Track signups, conversions, and revenue with one line of JS. Pass revenue_cents and the event auto-rolls up against the content that drove it.

Real-time visitors

A live "online now" pill in the header shows how many unique visitors are active in the last 5 minutes, scoped to the project or bucket.

Agent-readable performance

Give any team agent the Read web analytics capability and it can answer "which posts are underperforming this month?" with grounded Insights data.

One-line install.

For any HTML page. Cosmic-built apps get this automatically.

<script
  defer
  src="https://insights.cosmicinsights.dev/script.js"
  data-project="YOUR_PROJECT_ID"
></script>

Works in Next.js, Astro, Nuxt, Remix, and SvelteKit. SPA navigation is handled by the script tag.

Cookieless. IP-anonymized. GDPR-friendly by default.

No cookies, no localStorage, no fingerprinting. Visitor identifiers reset every day at UTC midnight. IPs are hashed with a rotating salt server-side and dropped. No cookie banners required.

Included in every Cosmic plan.

Starts free with 100,000 events / month. Scales with you up through Enterprise. Pay only for the events you actually capture.

See the full pricing details
cosmic logo
cosmic logo

Start building today

No credit card required • Free forever