# sectionsight

> Privacy-first website analytics your agent builds into your site, then proves in a real browser.

sectionsight is a free AI agent skill on Agensi by Jakub Dvořák, in Testing & Debugging. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Jakub Dvořák](https://www.agensi.io/creators/jakub-dvo-k)
- Category: [Testing & Debugging](https://www.agensi.io/skills/testing-debugging)
- Uses: 2
- Version: 1.0
- Last updated: 2026-10-14
- Security: scan passed (2026-10-14); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/sectionsight
- Tags: web-design, marketing, testing, privacy, posthog, analytics, cookieless, consent-banner

## About this skill

Ask your coding agent to "add privacy-first analytics to this site". sectionsight asks you a few decisions, builds a cookieless setup into your own site, and then checks it with a headless browser.

What you get:
- Time actually spent on each page section and whether it was read, scroll depth, CTA and goal clicks, dead and rage clicks, 404s, JS errors and Core Web Vitals. No cookies, no ids.
- A consent banner designed around the EDPB Cookie Banner Taskforce report and CNIL guidance. PostHog session replay is optional and only runs after consent.
- A Slack or e-mail line per notable visit, a weekly digest, AI referral and crawler counts, health alerts, enforced retention, and self-service deletion of a visitor's data.
- A draft of the privacy-page text.

The check (scripts/verify.mjs, Playwright) proves the claims: nothing stored and no ids before consent, no e-mail or token in any request, withdrawal works across tabs, and, with --privacy-page, that the privacy page names every service the browser sends data to.

Works on plain HTML, Astro, Next.js, React SPAs, Cloudflare and Node. Installs as a plugin in Claude Code, Codex and Gemini CLI.

Not legal advice: the skill never claims compliance.

Open source (MIT). Latest version, issues and changelog: https://github.com/Majny/sectionsight

## Requires

- esbuild
- Node.js
- Playwright

## Known limitations

Needs a same-origin POST endpoint (a server, function or worker); a static host with nothing behind it is not enough. The browser check needs Node 20+, Playwright and Chromium. Self-service deletion is not available on Cloudflare Analytics Engine. The privacy-page text is a draft for the owner to review, not legal advice.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the sectionsight skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### How is this different from Google Analytics?

It runs on your own site and your own storage, with no cookies and no ids before consent. It measures what people read (seconds per page section), not just page views, and a headless-browser check shows what is and is not sent. It does not claim legal compliance; it gives you evidence to show your reviewer or lawyer.

### Which stacks and agents does it work with?

Plain HTML, Astro, Next.js, React SPAs, Cloudflare Workers and Node, anything that can take a same-origin POST. It installs as a plugin in Claude Code, Codex and Gemini CLI, and any agent that loads SKILL.md can use the folder.

### What happens when I run it?

The agent reads your project without changing anything, asks you a few decisions (consent model, where data lives, replay, notifications, retention, private paths), builds the setup, and runs scripts/verify.mjs against your site.

### What is in the package?

The tracker (k.js), the collector and its stores, the consent banner, the PostHog guard, Slack/e-mail notifications, the weekly digest, health alerts, retention and deletion scripts, reference docs for each part, and the Playwright check. MIT licensed, free.

### Can I choose how much is collected and for how long?

Yes. You pick the consent model (totals only, or per-visit rows after Accept), retention for totals, rows and Slack lines, and which paths are never measured. Your answers are written into ANALYTICS_DECISIONS.md.

### What is sent before a visitor answers the banner?

With the banner model, only totals with no ids: no cookies, nothing in browser storage, no PostHog request. The check fails if any of that changes.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
