# Tianji

> Website stats, uptime alerts and server health in one.

- Page: https://cgt.octabyte.io/templates/tianji/
- Category: Analytics
- Replaces: Google Analytics, UptimeRobot and Pingdom
- Ease of use: Easy. You sign in as admin with the password Cloudgate creates for you, then add your website and the addresses you want checked.
- App price: Free. To run it you need Cloudgate (hosted, or free to install yourself) and a server, which hosted Cloudgate can provide.
- License: Apache-2.0
- Good for: Small teams who want visitor stats, uptime alerts and server health in one dashboard
- Official website: https://tianji.dev
- Documentation: https://tianji.dev/docs/intro
- Source code: https://github.com/msgbyte/tianji
- Last updated: 2026-11-20

## What is Tianji?

Self-hosted Tianji puts cookie-free website analytics, uptime monitoring and server status in one open-source dashboard.

Self-hosted Tianji is an open-source dashboard that combines website analytics, uptime monitoring and server status in one app, so it can replace Google Analytics and an uptime service such as UptimeRobot or Pingdom. It counts who visits your websites without cookies, checks that your sites and services answer, and shows how busy your servers are.

Instead of signing in to one tool for visitor numbers and another for outage alerts, you see both side by side. A small web agency, for example, can track each client's website, get a Telegram message within minutes when one stops responding at night, see that the server behind it has run out of disk space, and point the client to a public status page while it is fixed.

Tianji works with any website: you paste one short tracking line into the site's header. Alerts go to email, Telegram, Microsoft Teams, webhooks and more. There is no phone app, but the dashboard works in a phone's browser.

Cloudgate installs Tianji on a server Cloudgate provides or one you connect, together with the database it needs, and gives it a secure web address. You sign in as admin with a password Cloudgate generates, so there is no default password to change. Your statistics and monitoring history stay on your server.

## What you can do with Tianji

- **See who visits your websites**: Views, visitors, bounce rate, time on site, top pages, referrers, countries and devices, with no cookies.
- **Know when a site goes down**: Check websites, servers, ports and domain names on a schedule, with response times and uptime for the last day and month.
- **Get alerted your way**: Receive alerts by email, Telegram, Microsoft Teams, Feishu or a webhook, or through Apprise to many more services.
- **Watch your servers**: A small reporter on each server shows its CPU, memory, disk, network traffic and uptime in one table.
- **Catch missed scheduled jobs**: A backup or nightly task pings Tianji when it runs, and you get an alert when a ping does not arrive.
- **Publish a status page**: Show customers which of your services are up, on your own web address if you like.
- **Work as a team**: Invite colleagues into a shared workspace for your sites, monitors and servers.

## Replaces Google Analytics, UptimeRobot and Pingdom

Tianji does the same job as Google Analytics, UptimeRobot and Pingdom. Here is what changes when you switch.

### What you gain

- One app and one sign-in instead of separate tools for stats and uptime
- No cookies on your website for visitor stats
- No limit on websites, monitors or servers, and no monthly plan
- Your visitors' data and your monitoring history stay on your server

### What is different

- Fewer reports than Google Analytics, and no Google Ads link
- Uptime checks run from your one server, not from many places around the world
- Server stats need a small reporter program installed on each server
- No phone app; you check the dashboard in a phone's browser

## What happens when you click Deploy?

Deploy link: https://cloudgate.octabyte.app/get-started?template=tianji

1. **Click Deploy and create your account.** Deploy takes you to Cloudgate. Create an account, or log in if you have one. Tianji itself is free.
2. **Choose a server.** No server? Get one from Cloudgate: pick a size and a country, and Cloudgate gets it ready. Already have one? Connect it instead.
3. **Cloudgate sets up Tianji.** It prepares the server, makes the passwords the app needs and starts it. There is nothing to install and nothing to write down.
4. **Open your app and sign in.** Your app gets a free web address to start, without https. Add your own domain, like app.yourshop.com, and Cloudgate secures it with https for you.

## Questions

### Is Tianji free?

Yes, Tianji is free and open source under the Apache 2.0 licence. The self-hosted version has no paid plans or limits on websites, monitors or servers; you pay only for your server.

### Is Tianji a good alternative to Google Analytics and UptimeRobot?

Yes, if you want simple visitor stats and uptime alerts in one place. Tianji covers the main visitor numbers without cookies and checks your sites on a schedule, but it has fewer reports than Google Analytics and checks from one server rather than from many locations like UptimeRobot.

### How is Tianji different from Umami and Uptime Kuma?

Tianji does both jobs in one app, plus server health and status pages. Umami is a lighter, more focused analytics tool and Uptime Kuma is a more mature uptime monitor with more alert services, so you would install two apps to get what Tianji does in one.

### How do I sign in to Tianji the first time?

Sign in with the username admin and the password Cloudgate generates for you, shown on the app's variables page in Cloudgate. You can change it inside Tianji afterwards. Public sign-up is off, so new people join only when the admin invites them.

### Does Tianji need a cookie banner?

Usually no, not for its own tracking, because Tianji does not track visitors with cookies. Other tools on your website may still need one.

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

No, Tianji has no import from Google Analytics, UptimeRobot or Pingdom. Your stats start from the day you add Tianji's tracking line, and adding a monitor takes a web address and a check interval.

### How does Tianji watch my servers?

A small reporter program runs on each server and sends its CPU, memory, disk and network figures to Tianji every few seconds. Tianji gives you a one-line install command for it on the Servers page.

### Do I need technical skills to run Tianji?

No. Click Deploy, create your Cloudgate account and choose a server, and Cloudgate sets up Tianji and gives it a web address. You use it in your browser like any other online tool.

### Do I need my own server for Tianji?

No. When you deploy Tianji, hosted Cloudgate can provide a server. If you already rent one, you can connect it instead.
