Getting started
Add Pageflock to a site in a couple of minutes, then read your numbers in the dashboard or from your AI assistant.
Pageflock is cookieless web analytics. A script under 1 KB counts page views, custom events, time on page and scroll depth, without cookies or anything else stored on your visitors' devices. You read the numbers in the dashboard, through the REST API, or by asking Claude or ChatGPT through the MCP server.
1. Create a site
Sign in at app.pageflock.com and choose Add site. Give it the domain you will track and a time zone. Pageflock shows the site's ID and the code to install, and then waits for the first visit.
Running your own instance? See Self-hosting first. Everything below works the same, with your own URLs.
2. Install the tracking
There are three ways to install it:
Ask your coding agent
Paste one prompt into Claude Code, Cursor or another agent. It picks the right setup for your framework.
@pageflock/analytics
One component for Next.js, React and Vue, or inject() for SvelteKit, Astro
and anything bundled.
Script tag
One line of HTML for static sites, CMSs and anything without a build step.
3. Check it works
Deploy, then open your site in a normal browser window. The install screen in the dashboard turns green when the first visit arrives. Pageflock ignores localhost, automated browsers and prerendered pages, so a local dev server never shows up. Turn on debug to see what would be sent.
Your agent can check too: the verify_installation MCP tool loads the site's home page and reports whether the script is there and whether events have arrived.
Next
- Track signups, purchases and other actions with custom events.
- If your site sets a Content Security Policy, allow the endpoint: Content Security Policy.
- Connect Claude or ChatGPT and ask how last week went.