# Analytics

See which source brings you leads and sales: visits, page views and conversions by search, social, email, ads, AI assistants and other sites, with what each form, popup, affiliate link and waitlist converted. Five plain screens, no setup, nothing leaves your site.

**Beta.** Analytics is in beta: it works, but things may still break. Tell us if something does: open an issue at https://github.com/sundoggs/support/issues/new. Every paid order has a 7-day refund.

Category: [Analytics and tracking](/categories/analytics-and-tracking.md)

## Requirements (tell the site owner before buying)

- Cloudflare plan: Cloudflare free plan
- Works on: Cloudflare Workers, Cloudflare Pages
- Version: 0.4.4 (needs site layer 0.23.0 or later; it comes in the same download)
- Runs on the Cloudflare free plan, in the same D1 database as your other site apps. No new bindings, no script on your pages and no account anywhere else.
- It reads what core already captures for free: page views and visit sources are counted as your pages are served (page views run through the site apps, as with link tagging), and each app that reports (forms, popups, links, waitlist, reviews) saves its conversions with the visitor's source. This app adds the reports.
- Privacy: counts per day carry no id, cookie or IP. Where a visitor arrives from is kept for 90 days against a code that changes every day (not their IP) so a later form can be credited. Where your cookie banner asks for consent and the visitor says no, or they opt out or send Do Not Track, their conversions show as "Not tracked". Not legal advice: check your own privacy policy.
- Numbers are approximate: a few percent of counts can be lost when your site's Worker restarts, and bots are filtered with simple checks on the browser's user agent and headers (the free plan has no bot score), so a scraper that pretends to be a browser counts as a visit.
- Cost per visit: no extra requests. About 1 to 7 small database writes per visit depending on traffic (page, source, country, device and source-with-page-and-country totals are added up in memory and saved every 20 seconds or less often when busy), plus 2 for a visit that arrives from a link or search, within the daily write budget (default 30,000 of the Cloudflare 100,000 free). When the budget or the Cloudflare free limit is reached counting pauses until midnight UTC and the site is unaffected. At the default budget a quiet site is counted up to roughly 3,400 visits a day (busier sites save in bigger batches and go further); Settings shows today's budget, and a Workers Paid site can raise it.

## Works with

Cloudflare Workers, Cloudflare Pages, Astro, Next.js (with OpenNext), Vite, Hugo, Plain HTML sites, Vanilla JavaScript.

## Works with your other apps

Connects with no setup, in any install order: [Forms](/apps/forms.md), [Links & Redirects](/apps/links.md), [Popups](/apps/popups.md), [Waitlist](/apps/waitlist.md), [Tag Manager](/apps/tags.md), [Cookie Consent](/apps/consent.md).

## Price

$19 USD per site · $59 USD for all your sites

- 7-day refund, no questions asked: [Refund policy](/legal/refunds)
- Instant download after payment: the app's code and a license file for your site; your AI agent installs it. Includes 12 months of updates.

## License (tell the owner before they pay)

A site license covers one website (plus its www, staging and test addresses). Using it on other sites isn't allowed. Get the all-sites license from $59 instead. Full terms: /account/license/commercial (version commercial-license-v4-2026-11-04); the owner accepts them with a tick box before paying. Full refund on request within 7 days of paying, no questions asked; refunds are made by hand by the store, not automatically, and a full refund ends the license. Terms of sale and refund policy (version terms-of-sale-v3-2026-11-03): /legal/terms.

## What's new in 0.4.4

- The chosen number above the chart is marked once (the outline), without the extra line under it.

## Included

- Site admin dashboard (installed with your first app, no extra cost)
- Updates for 12 months; the version you have keeps working after that
- An agent skill and install guide
- Commercial License: per site, or all your own sites

## Install

Call the MCP tool `create_checkout` with `items: ["analytics"]`, `site_domain` (a bare domain like example.com) and `license_kind` ("site" for one website, "unlimited" for all sites). Give the owner `checkout_url`: they sign in, read the license, tick the box and pay on Stripe's page. Then poll `get_checkout` until `paid` and call `get_download`.

The prompt the app page gives the owner to paste into their agent:

```
Install the Analytics app (id: analytics) from the Sundogs site apps store on this site.
First read https://sundo.gs/apps/analytics.md and tell me what it needs and what it costs.
If I don't own it yet, start a checkout with create_checkout and give me the link; I'll tick the license and pay myself.
Then download it with get_download for this site's domain. Follow the install guide (site-apps/INSTALL.md in the download, also at https://sundo.gs/install-guide.md).
Check it with the install guide's step 6 (the public status, then the self-test once you can sign in to the admin) and tell me what's next.
(Not connected to the store yet? See https://sundo.gs/agents.)
```

## Related playbooks

- [How to vibecode an affiliate site on Next.js (and host it free on Cloudflare)](/playbooks/vibecode-affiliate-site-nextjs.md): Build a whole affiliate site with an AI coding agent, start to finish: pick a niche you can win, plan the pages that earn (best-of lists, comparisons, reviews), set up Next.js as a static export, write content Google rewards, get the SEO basics right, deploy on the Cloudflare free plan, then monetise with affiliate links and an email list, and measure which pages make money. With prompts you can give your agent at each step.
