# Tianji vs Google Analytics

> Tianji or Google Analytics comes down to what you need to watch: self-hosted Tianji counts visitors without cookies and also checks that your sites and servers are up, while Google Analytics is a free Google service with far deeper marketing reports that sets cookies. Tianji suits small teams and agencies that want simple visitor stats, uptime alerts and server health in one dashboard. Google Analytics suits teams that run Google Ads or need detailed attribution.

- Page: https://cgt.octabyte.io/compare/tianji-vs-google-analytics/
- Tianji: https://cgt.octabyte.io/templates/tianji/
- Google Analytics: https://marketingplatform.google.com/about/analytics/
- Facts checked: November 2026

## Tianji vs Google Analytics at a glance

| | Tianji | Google Analytics |
| --- | --- | --- |
| Price | Free and open source, with no limit on websites, monitors or servers; you pay only for the server | Free; Analytics 360 is paid, with prices from Google's sales team |
| Hosting | Your own server; Tianji's cloud service is marked coming soon | Google's cloud only |
| Source code | Open source, Apache-2.0 | Proprietary |
| Cookies | None for its own tracking, so most websites need no banner for it | Sets cookies; in the EU and UK it usually needs consent, and consent mode handles refusals |
| Reports | Views, visitors, bounce rate, time on site, pages, referrers, UTM, countries and devices | Event-based reports, explorations, funnels, attribution and audiences, for websites and apps |
| Uptime and servers | Checks for websites, ports and domains, server CPU, memory and disk, alerts and status pages | Not part of Google Analytics |
| Import | No import of Google Analytics history | Not needed |
| Mobile apps | None; the dashboard works in a phone's browser | Google Analytics app for Android and iPhone |

## How Tianji and Google Analytics differ

### Tianji and Google Analytics pricing

As of November 2026, the standard Google Analytics is free. Google's paid tier, Analytics 360, has no public price: Google points you to its sales team or a Google sales partner for a contract.

Self-hosted Tianji is free and open source under the Apache 2.0 licence, at $0 a month with unlimited users and storage on its pricing page. There is no paid edition with extra features. Your cost is the server; on Cloudgate, Tianji and its PostgreSQL database run on a small one. Tianji's own cloud hosting is listed as coming soon, with a waitlist and no price yet.

### Cookies, privacy and where the data lives

Google Analytics stores a pseudonymous visitor ID in the browser's cookies and keeps your data in Google's cloud. In the EU and UK that usually means a consent banner, and Google's consent mode stops setting analytics cookies for people who refuse.

Tianji does not track visitors with cookies, so most websites need no banner for it. Self-hosted, your visitor stats and monitoring history stay on your server.

### Tianji and Google Analytics visitor stats

Tianji covers the numbers most small websites check: views, visitors, bounce rate, time on site, top pages, referrers, UTM campaigns, countries and devices.

Google Analytics 4 goes much further. It is built around events for websites and phone apps together, with explorations, funnels, cross-platform attribution and audiences, and it links to Google Ads, Search Ads 360, Display & Video 360 and Search Console. If you rely on those reports, Tianji is not a like-for-like replacement.

### Uptime, servers and status pages in Tianji

This is what Tianji adds. It checks websites, servers, ports and domain names on a schedule and shows response times and uptime. Alerts go to email, Telegram, Microsoft Teams, Feishu, webhooks, or many more services through Apprise. A small reporter on each server sends its CPU, memory, disk and network figures, a scheduled job can ping Tianji so you hear when it misses a run, and a status page shows customers which services are up.

The limit to know: Tianji's checks run from your one server, so they cannot tell you whether a site is reachable from other parts of the world.

### What Google Analytics has that Tianji lacks

- **Marketing reports.** Funnels, explorations, attribution and audiences.
- **Google Ads and other Google tools.** Tianji has no Google Ads link.
- **A phone app.** Google has an Analytics app for Android and iPhone; Tianji's dashboard works in a phone's browser.
- **Nothing to run.** Google runs Google Analytics. With Tianji, you look after the server, its updates and backups.

## Should you choose Tianji or Google Analytics?

### Choose Tianji if

- You want visitor stats and outage alerts in one app and one sign-in, instead of two tools.
- You want visitor stats with no cookies, so most websites need no banner for Tianji's tracking.
- You look after several websites or servers and want to know within minutes when one stops answering.
- You want a public status page for your customers on your own web address.
- You want an Apache-2.0 open-source tool with no limit on websites, monitors or servers.

### Choose Google Analytics if

- You run Google Ads and want conversions and audiences shared with it.
- You need funnels, explorations, attribution and audiences; Tianji covers only the main visitor numbers.
- You want a free service that Google runs, with no server of your own to look after.
- You want to check your stats in a phone app.
- You export raw events to BigQuery; standard properties can send up to 1 million events a day.

## Moving from Google Analytics to Tianji

Add Tianji's tracking line to your website's header next to the Google Analytics tag, and run both for a few weeks so you can compare the numbers before you remove the Google tag. Tianji cannot import Google Analytics history, so keep your GA4 property, or export the reports you need, for later comparison. Then add a monitor for each website and service you want checked, choose where alerts go, such as email or Telegram, and install Tianji's small reporter on any server you want to watch. Google Ads links, audiences, funnels and GA4 explorations do not carry over.

## Questions

### Is Tianji better than Google Analytics?

Tianji is better than Google Analytics for small teams that want simple, cookie-free visitor stats plus uptime alerts and server health in one self-hosted dashboard. Google Analytics is better for teams that run Google Ads or need detailed marketing reports, funnels and app tracking.

### Is Tianji free?

Yes. Tianji is free and open source under the Apache 2.0 licence, with no paid plans or limits on websites, monitors or servers, and Google Analytics is free too. To run Tianji you need Cloudgate and a server, which hosted Cloudgate can provide.

### Can Tianji replace Google Analytics and an uptime monitor?

Yes, for most small websites. Tianji counts the main visitor numbers like Google Analytics and also checks websites, servers, ports and domains on a schedule, with alerts. Its uptime checks run from your one server, not from many places around the world.

### Can I import my Google Analytics data into Tianji?

No. Tianji has no import from Google Analytics, so your Tianji stats start on the day you add its tracking line. Keep your Google Analytics property for past reports.

### Does Tianji need a cookie banner like Google Analytics?

Usually not for its own tracking, because Tianji does not track visitors with cookies. Google Analytics stores a visitor ID in cookies, so in the EU and UK it usually needs consent first. Other tools on your website may still need a banner.

## Sources

- [Google Analytics](https://marketingplatform.google.com/about/analytics/)
- [Google Analytics 360 (Google Analytics contract)](https://support.google.com/analytics/answer/9826983)
- [Google Analytics BigQuery export](https://support.google.com/analytics/answer/9358801)
- [Google tag consent mode](https://developers.google.com/tag-platform/security/guides/consent)
- [About the Analytics app](https://support.google.com/analytics/answer/12674799)
- [Tianji pricing](https://tianji.dev/pricing)
- [Tianji documentation](https://tianji.dev/docs/intro)
- [Tianji on GitHub](https://github.com/msgbyte/tianji)
