Analytics comparison

PostHog 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 PostHog and Tianji. It is not a hands-on test, a ranking or a recommendation of one product.

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

Price

  • PostHog

    Documented price: $50 per 1,000,000 headline analytics events in the 1–2M monthly tier overage · Plan: Pay-as-you-go · no minimum commitment · · earlier capture, recheck before relying on it

    • Free: no subscription charge · Price needs recheck ·
    • Pay-as-you-go: $50.00 overage per 1,000,000 headline analytics events in the 1–2M monthly tier, no monthly base charge · no minimum commitment · Price needs recheck ·
  • Tianji

    Free plan · paid prices not verified ·

    • Self-hosted: no subscription charge ·

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.

Retention
PostHog Free: 1 yearPay-as-you-go: 7 years
Tianji 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).
Privacy
PostHog Controls for collection, processing and storage; customer chooses what to collect
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.

Documented in unconfirmed terms

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

Events
PostHog Free: 1,000,000 analytics events per monthPay-as-you-go: Analytics events above the monthly free allowance are charged by usage.
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

  • PostHog Analytics, replay and feature flags have different usage allowances. Free has one project and one year of retention; adding a card enables paid usage.
  • Tianji Tianji is positioned for users with lightweight needs; the README says specialised tools still make sense for experts.

Not verified yet

Every compared requirement has evidence for at least one.

Documented for one product only, shown in the table below: PostHog: projects; Tianji: exports and sites.

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.
RequirementPostHogTianji
Pricing
Documented price: $50 per 1,000,000 headline analytics events in the 1–2M monthly tier overage · Plan: Pay-as-you-go · no minimum commitment

Price needs recheck

See all 2 offers

Free plan · paid prices not verified

Who it is for
Analytics based on events, alongside separately metered replay, feature flags and other products.

Verified Oct 18, 2026 · PostHog: official product and pricing documentation

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

Verified Nov 6, 2026 · Tianji: tianji-project

Coverage limits
Analytics, replay and feature flags have different usage allowances. Free has one project and one year of retention; adding a card enables paid usage.

Verified Oct 18, 2026 · PostHog: official product and pricing documentation

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
  • Free 1,000,000 analytics events per month
  • Pay-as-you-go Analytics events above the monthly free allowance are charged by usage.
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

Retention
  • Free 1 year
  • Pay-as-you-go 7 years
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
Controls for collection, processing and storage; customer chooses what to collect

PostHog documents privacy controls and assigns collection and regulatory decisions to the customer. This does not assert automatic compliance, cookieless defaults or equivalence to Plausible.

Verified Oct 19, 2026 · PostHog privacy controls and customer responsibilities

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

ExportsNot verified
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

SitesNot verified
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

Projects
  • Free 1 project
  • Pay-as-you-go 6 projects
Not verified
Coverage note

Official documentation checked on 18 October 2026; no hands-on test.

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.

Next steps

  • Recheck PostHog's prices on its official pricing page: the reviewed price evidence is older than its review window.
  • Confirm Tianji's paid plan prices, billing term and taxes on its official pricing page; only its free plan is verified here.
  • Ask PostHog about exports and sites; 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.