Skip to main content
Production Stack Recipes · Zero-Config SDK + Edge Crawlers

Framework Integrations & First-Party Edge Telemetry Guides

Deploy cookieless Clean Human analytics, 300ms Fail-Open AdGuard protection, and real-time `OAI-SearchBot` / `ClaudeBot` / `PerplexityBot` edge capture in under 5 minutes.

Stack Guide · Next.js 14 / 15 App Router3 minutes

Next.js (App Router)

Add PrismUV to any Next.js 14 or 15 App Router project using one deferred `<script>` tag inside `app/layout.tsx`, then attach a lightweight `middleware.ts` beacon (`event.waitUntil`) so `OAI-SearchBot`, `Claude-SearchBot`, `PerplexityBot`, and `Googlebot` crawls log cleanly across every SSR/SSG route.

  • Auto-tracks App Router soft navigations (`history.pushState`) cleanly without custom hooks
  • Measures real visitor P75 LCP, INP & CLS plus `data-release` frontend crashes
  • Captures non-JS AI crawlers (`OAI-SearchBot`, `ClaudeBot`, `PerplexityBot`) via `middleware.ts`
  • Zero cookie banners — cookieless SHA-256 daily IP hashing
Open Step-by-Step Setup
Stack Guide · First-Party /_t Proxy + Edge Telemetry4 minutes

Cloudflare Workers & Edge Proxy

Serving analytics from `/_t/f.js` on your own domain eliminates third-party ad-blocker blind spots while logging every `OAI-SearchBot`, `GPTBot`, `ClaudeBot`, `Claude-SearchBot`, and `PerplexityBot` edge hit via `ctx.waitUntil()`. Configure strictly fail-open timeouts so upstream issues never interrupt your site.

  • First-party `/_t/f.js`, `/_t/in`, `/_t/v`, `/_t/err` routing on your apex domain
  • Non-blocking `ctx.waitUntil()` AI crawler logging to `/t/edge` using `PRISMUV_EDGE_SECRET`
  • Zero-impact fail-open behavior (if upstream times out, Worker returns empty HTTP 204)
  • Works seamlessly with static Cloudflare Cache Rules (`CF-Cache-Status: HIT`)
Open Step-by-Step Setup

Using Cursor, Claude Code, or Codex CLI?

Point your AI assistant straight at our Markdown specification (`/docs/prismuv-skill.md`) or attach our 36-tool MCP Server (`npx -y prismuv-mcp`).

Integration & Proxy Setup FAQ

Do I need both the client JS snippet and edge middleware to use PrismUV?

One `<script defer src="https://prismuv.com/s/YOUR_SITE_ID/prismuv.js">` tag handles Clean Human UV, Core Web Vitals, AdGuard IVT, and JS errors immediately. Adding edge middleware simply unlocks `/t/edge` non-JS AI crawler telemetry as well.

Which setup guarantees highest event accuracy against browser ad blockers?

Our Cloudflare Workers `/_t/*` first-party proxy keeps script delivery and beacons on your own apex domain, preventing third-party domain blocklists from dropping clean sessions.

Can AI assistants automatically wire PrismUV into my Next.js or HTML repo?

Yes—point your coding assistant directly to `https://prismuv.com/docs/prismuv-skill.md` and pair `npx -y prismuv-mcp` to verify ingestion live.