Analytics comparison

GoatCounter vs Tianji

Prices, documented capabilities and limits from dated official sources, side by side. Unknowns remain unknown; different billing units do not establish a cost winner.

What the evidence answers

A reading of reviewed official documentation for GoatCounter and Tianji. It is not a hands-on test, a ranking or a recommendation of one product.

Common buyer questions answered
3 requirements
Documented for one
1 requirement
Not verified for either
1 requirement
Prices
Not like-for-like yet

Price

A complete like-for-like price comparison is not established; the next steps say what is missing.

Common buyer questions answered

Even when labels match, check each source for differences in plans, units and scope.

Privacy
GoatCounter The supplier describes an in-memory session key based on site ID, user agent and IP, mapped to a random UUID; it says IP and user agent are not written to the database or disk.
Tianji The tracker script's optional data-do-not-track attribute makes it respect the browser's Do Not Track setting and disable tracking when DNT is enabled.
Exports
GoatCounter CSV export of individual pageviews requires enabling Individual pageviews in site settings; it is disabled by default. The documentation recommends JSON export for most users.
Tianji Tianji provides a REST API (JSON over HTTPS, authentication required) for programmatic access to its features, including website analytics data.
Sites
GoatCounter Use separate sites for domains, or include the hostname in the recorded path for one combined overview.
Tianji Tianji's website list provides the tracker snippet, a script under 2 KB that identifies the site with a data-website-id attribute.

Documented in unconfirmed terms

These facts may describe different measures, markets, languages or scopes. Check each plan, unit and period before comparing them.

Events
GoatCounter Click events can be recorded through the data-goatcounter-click attribute.
Tianji Click events are recorded by adding a data-tianji-event attribute to a page element; extra event data can be attached with data-tianji-event-{key} attributes.

Limits to check

  • GoatCounter The hosted service is free for reasonable public use; the supplier gives examples rather than a fixed numerical quota.
  • Tianji Tianji is positioned for users with lightweight needs; the README says specialised tools still make sense for experts.

Not verified yet

No reviewed evidence for either product on projects.

Documented for one product only, shown in the table below: Tianji: retention.

Not verified means our reviewed sources do not establish it. It does not mean a product lacks the capability or that it costs nothing.

Side-by-side evidence

Documented values with their sources and check dates; requirements the sources do not establish stay marked.

  • Documented as supported
  • Documented as unsupported
  • Not verified Sources do not establish it
  • Not applicable
Documented scope and limits; unverified dimensions remain unknown.
RequirementGoatCounterTianji
Pricing
Free plan · paid prices not verified

Free plan · paid prices not verified

Who it is for
Open-source website analytics offered as a donation-supported hosted service or a self-hosted application.

Verified Nov 3, 2026 · GoatCounter: goat-home

Tianji combines website analytics, an uptime monitor and server status in one application.

Verified Nov 6, 2026 · Tianji: tianji-project

Coverage limits
The hosted service is free for reasonable public use; the supplier gives examples rather than a fixed numerical quota.

Verified Nov 3, 2026 · GoatCounter: goat-home

Tianji is positioned for users with lightweight needs; the README says specialised tools still make sense for experts.

Verified Nov 6, 2026 · Tianji: tianji-project

Events
Click events can be recorded through the data-goatcounter-click attribute.

Verified Nov 3, 2026 · GoatCounter: goat-events

Click events are recorded by adding a data-tianji-event attribute to a page element; extra event data can be attached with data-tianji-event-{key} attributes.

Tianji documentation in msgbyte/tianji at release v1.34.1, captured on 8 November 2026 (Tracker Script page). The same page documents automatic page-view tracking (data-auto-track, on by default) and a window.tianji.track() JavaScript API for custom events. Supplier documentation, not a hands-on test.

Verified Nov 9, 2026 · Tianji: tianji-trackscript-project

RetentionNot verified
Self-hosted Tianji runs an automatic data cleanup by default (DISABLE_AUTO_CLEAR defaults to false) and keeps audit logs for 30 days by default (AUDIT_LOG_RETENTION_DAYS).

Tianji documentation in msgbyte/tianji at release v1.34.1, captured on 8 November 2026 (Environment Variables page). Which data the automatic cleanup removes, and after how long, is not stated there; DISABLE_AUTO_CLEAR=true turns it off. Not a hands-on test.

Verified Nov 9, 2026 · Tianji: tianji-env-project

Privacy
The supplier describes an in-memory session key based on site ID, user agent and IP, mapped to a random UUID; it says IP and user agent are not written to the database or disk.

Verified Nov 3, 2026 · GoatCounter: goat-sessions

The tracker script's optional data-do-not-track attribute makes it respect the browser's Do Not Track setting and disable tracking when DNT is enabled.

Tianji documentation in msgbyte/tianji at release v1.34.1, captured on 8 November 2026 (Tracker Script page). The attribute is optional and has no listed default, so Do Not Track is honoured only when it is set; the page also documents a localStorage flag (tianji.disabled) that disables tracking. No privacy audit or legal-compliance finding.

Verified Nov 9, 2026 · Tianji: tianji-trackscript-project

Exports
CSV export of individual pageviews requires enabling Individual pageviews in site settings; it is disabled by default. The documentation recommends JSON export for most users.

Verified Nov 3, 2026 · GoatCounter: goat-export

Tianji provides a REST API (JSON over HTTPS, authentication required) for programmatic access to its features, including website analytics data.

Tianji documentation in msgbyte/tianji at release v1.34.1, captured on 8 November 2026 (API Getting Started page). Access uses an API key and the ALLOW_OPENAPI setting. A file export (CSV or JSON download) is not established by this page, and no API call was made.

Verified Nov 9, 2026 · Tianji: tianji-api-project

Sites
Use separate sites for domains, or include the hostname in the recorded path for one combined overview.

Verified Nov 3, 2026 · GoatCounter: goat-domains

Tianji's website list provides the tracker snippet, a script under 2 KB that identifies the site with a data-website-id attribute.

Tianji documentation in msgbyte/tianji at release v1.34.1, captured on 8 November 2026 (Tracker Script page). No limit on the number of websites is stated for the self-hosted software; an optional data-domains attribute restricts tracking to listed domains. Not a hands-on test.

Verified Nov 9, 2026 · Tianji: tianji-trackscript-project

Coverage note

Supplier documentation acquired on 3 November 2026. Applies to the described configuration; no hands-on test, privacy audit or legal-compliance finding.

Dated publisher project README captured on 5 November 2026; supplier description, not a deployment or independent test. Infrastructure, accounts, third-party services and managed offerings have separate costs and terms.

1 requirement without reviewed evidence here

Not verified means the reviewed sources do not establish it; it does not mean a product lacks it or that it costs nothing.

  • Projects GoatCounter: not verified · Tianji: not verified

Next steps

  • Confirm GoatCounter's paid plan prices, billing term and taxes on its official pricing page; only its free plan is verified here.
  • Confirm Tianji's paid plan prices, billing term and taxes on its official pricing page; only its free plan is verified here.
  • Ask GoatCounter about projects and retention; our sources do not establish them yet.
  • Ask Tianji about projects; our sources do not establish it yet.

Commissions never change costs, eligibility or rankings.