Indie makers
Launching side projects? See which page is catching on, without a cookie banner in the way.
Perch is privacy-first, self-hostable web analytics for landing pages and small site portfolios. One tiny script and one calm dashboard for every project you run, on your own Cloudflare account, with every event kept and nothing sampled.
Perch is shaped for portfolios of small sites and landing pages, not one enterprise property with a data team behind it.
Launching side projects? See which page is catching on, without a cookie banner in the way.
One Perch for every client site: one sign-in, one project dropdown, CSV export per project.
Track the CTAs that matter on launch pages and read campaign results without a GA4 learning curve.
Visitor data stays in your Cloudflare account. No raw IPs stored, and identifiers reset daily.
Add the tracker once. Perch handles pageviews, campaigns, outbound links, and the CTA signals that tell you whether a landing page is doing its job.
<!-- Add once, just before </body> --> <script src="https://perch.YOUR-ACCOUNT.workers.dev/perch.js" data-project-id="my-project" defer ></script> <!-- Mark the clicks that matter --> <a href="/signup" data-perch-cta="signup-hero">Start free</a>
# Paste into Claude, Copilot, Cursor or any coding agent
Add Perch analytics to this site.
1. Read https://github.com/tanzir71/perch/blob/main/INTEGRATION.md
and follow it from top to bottom.
2. Reuse my Perch Worker if I have one; otherwise deploy it.
3. Register this site, add the tag once, and mark the main CTAs.
4. Run the verification checklist and hand me the dashboard URL.
# One click: https://deploy.workers.cloudflare.com/?url=https://github.com/tanzir71/perch # Or from a clone of the repository: npm install npx wrangler d1 create perch # paste the id into wrangler.toml npx wrangler d1 migrations apply DB --remote npx wrangler secret put SALT # a long random string npm run deploy # prints your Worker URL
Built for indie makers, small teams, and agencies who run more than one landing page, and want answers without surrendering visitor data.
Every event stays queryable. No hidden 10% sample or truncated top rows.
See which site is winning, then drill into the project behind the signal.
A deterministic guide lets an agent deploy, instrument, verify, and hand over the bookmark.
No persistent identity, no client storage, no cross-day trail, and typically no analytics consent banner.
Under 3 KB gzipped, loaded with defer, and out of your rendering path.
Runs on Cloudflare Worker + D1 free-tier infrastructure that you control.
Perch keeps the scope focused while covering the traffic, attention, acquisition, and conversion questions that actually shape the next iteration.
Pageviews, daily unique visitors, sessions, engaged visits, and pages per visit.
pageviews · uniquesCTA clicks, custom events, outbound links, scroll depth and time on page.
data-perch-ctaChannels (including AI assistants), referring hosts, and UTM source, medium and campaign.
utm_* · AI referralsCountry, device, browser, operating system, and language.
country-level onlyTop, entry and exit pages, with scroll depth per page.
top · entry · exitVisitors active in the last five minutes, by project and globally.
last 5 minutesConversion rate per CTA and per custom event, not just one number per page.
pageview → ctaRank every project, compare periods, and spot a site that stopped sending data.
all projectsCSV downloads and a documented, unsampled JSON rollup endpoint.
/api/rollupOptional LCP, INP, and CLS at the 75th percentile, off until you ask for it.
data-perfNo vendor cloud in the loop. Your pages talk to your Worker, your Worker writes to your database, and only you can open the dashboard.
Sends pageviews, CTA clicks, outbound links, engagement and custom events. No cookies, no IP, no device data.
Derives country, device, browser and channel. Hashes IP + UA + date + salt, then discards the IP.
Raw events plus a nightly summary. Every metric is a SQL query, so nothing is sampled or capped.
Sign in once with an identity you already have. One bookmark for every project.
Give each landing page a stable project ID and mark the CTAs that matter.
Your Cloudflare Worker enriches anonymous events and stores them in your D1 database.
Sign in once through Cloudflare Access and use one bookmark for every project.
Lead with the portfolio, spot the project drawing attention, then move into the details. Every number compares itself with the previous period, and every row is a filter.
Every tile and chart shows the previous period, so a number is never just a number.
Click a referrer, page, country or CTA to scope the whole view to it.
See which button earns its place, not just how many clicks the page got.
ChatGPT, Perplexity, Claude and Gemini visits get their own channel.
Perch is deliberately small and self-hosted, with the portfolio view and integration path built around independent site owners.
| Capability | Perch | Google Analytics | Cloudflare Web Analytics |
|---|---|---|---|
| Cookies / consent | Cookieless | Configuration-dependent | Cookieless |
| Sampling | None | Can apply | Sampled reporting |
| Data ownership | Your D1 database | Vendor-hosted | Vendor-hosted |
| Global multi-project view | Built in | Account navigation | Per-site views |
| Self-hostable | Yes | No | No |
| Base software price | Free / open source | Free tier | Free |
Based on each product’s default setup as of November 2026; plans and settings change, so check the vendor’s documentation. Google Analytics and Cloudflare are trademarks of their respective owners.
Perch derives the minimum useful context at the edge, hashes and discards the raw IP, and rotates anonymous identifiers every day. There is no person-level profile to browse or sell.
We use Perch, a cookieless analytics tool, to understand aggregate site traffic and improve this website. Perch does not store IP addresses or create cross-site profiles. Anonymous visitor identifiers rotate daily. We collect page paths, coarse country and device information, referring domains, campaign tags, and interactions such as button clicks. Do not submit personal information through analytics event properties.
Short answers here. README.md and INTEGRATION.md go deeper.
Perch uses no cookies or persistent identity, so analytics alone typically does not require a consent banner. Your site may still need one for other tools; confirm requirements for your jurisdiction.
Perch is designed for data minimization: no raw IP storage, no cross-site profiles, daily-rotating anonymous hashes, and country-level location only. Compliance also depends on how you deploy it and what your site collects elsewhere.
Perch itself is MIT-licensed. GitHub Pages, Cloudflare Workers, Access, and D1 all offer free tiers that suit personal and modest marketing traffic; a nightly summary keeps dashboard reads small. Provider usage fees may apply beyond those limits.
Yes. That is the default model: your Worker, your D1 database, your Access policy, and your GitHub Pages site. The Deploy to Cloudflare button creates the Worker and database for you.
Perch queries every event it receives without sampling. Cookieless daily visitors and 30-minute sessions are intentionally coarse approximations, and blockers can prevent some events unless you use a first-party endpoint.
Register a new project ID, add the same tag with that ID, and instrument its CTAs. It appears automatically inside the existing project dropdown, with an install check that confirms the first events.
Some privacy extensions block *.workers.dev. Serve your Worker from a subdomain of your own site, such as a.example.com, and load /perch.js from there; most of that loss goes away.
Yes. Call perch.track("pageview") after each route change. Perch reads the current path, and closes out the previous page’s scroll and time first.
Perch uses GitHub Pages plus Cloudflare Worker and D1 free tiers for the traffic profile it is designed for. Fork it, inspect it, extend it, or let an LLM wire it into your next launch.