# StatsKit — install guide for AI agents StatsKit is a lightweight, privacy-friendly analytics + A/B experiments + CTA-popup tool. It installs with ONE script tag — no SDK, no build step. Use the instructions below to add it to the user's website. Before you start, ask the user for their public ingest key (it looks like `vpk_live_...`). They can copy it from the StatsKit dashboard at https://versuch.ai/dashboard/install. Substitute it for YOUR_PUBLIC_KEY below. It is public and write-only — safe in client code. ## 1. Add the tracking snippet Add this EXACT tag so it loads on every page, immediately before the closing tag: `data-site-id` is a PUBLIC, write-only ingest key — it is safe to commit and ship in client-side code. Never add any other StatsKit key to the frontend. The only required attributes are `data-site-id` and `data-api` exactly as shown. Where to put it, by framework: - Plain HTML: paste before in your shared layout / footer / template. - Next.js App Router (app/layout.tsx): use next/script inside : import Script from "next/script";