Skip to content

Commit 7ccab50

Browse files
committed
docs: add blog post on privacy-first website analytics with Tianji
1 parent 58c5d1c commit 7ccab50

1 file changed

Lines changed: 92 additions & 0 deletions

File tree

Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
---
2+
title: "Privacy‑first Website Analytics, Without the Creepiness"
3+
slug: privacy-first-website-analytics-tianji
4+
description: "Cookie‑less, IP‑anonymized analytics that respects users yet keeps your product decisions sharp — powered by Tianji."
5+
tags:
6+
- Analytics
7+
- Privacy
8+
- Compliance
9+
- Self‑host
10+
- Tianji
11+
---
12+
13+
# Privacy‑first Website Analytics, Without the Creepiness
14+
15+
[![privacy lock and data](https://images.unsplash.com/photo-1614064642261-3ccbfafa481b?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixlib=rb-4.1.0&q=80&w=1200)](https://images.unsplash.com/photo-1614064642261-3ccbfafa481b?crop=entropy&cs=srgb&fm=jpg&q=85)
16+
17+
Most teams want trustworthy product signals without shadow‑tracking their users. This post outlines how to run a privacy‑first analytics stack that is cookie‑less, IP‑anonymized, and compliant by default — and how Tianji helps you ship that in minutes.
18+
19+
## What “privacy‑first” really means
20+
21+
- No third‑party cookies or fingerprinting
22+
- IP and geo anonymization at ingestion time
23+
- Minimization and aggregation by default (store only what you act on)
24+
- Short retention windows with configurable TTLs
25+
- Clear data governance: self‑hosted or region‑pinned
26+
27+
[![you are being watched vs privacy](https://images.unsplash.com/photo-1534157327728-accacabda257?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixlib=rb-4.1.0&q=80&w=1200)](https://images.unsplash.com/photo-1534157327728-accacabda257?crop=entropy&cs=srgb&fm=jpg&q=85)
28+
29+
Privacy is not the absence of insight. It is the discipline to collect the minimum, aggregate early, and keep identities out of the loop unless users explicitly consent.
30+
31+
## What you still get (and need) for product decisions
32+
33+
[![analytics dashboards](https://images.unsplash.com/photo-1551288049-bebda4e38f71?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixlib=rb-4.1.0&q=80&w=1200)](https://images.unsplash.com/photo-1551288049-bebda4e38f71?crop=entropy&cs=srgb&fm=jpg&q=85)
34+
35+
- Page views, sessions, referrers, UTM cohorts (sans cookies)
36+
- Conversion funnels and drop‑offs on critical paths
37+
- Lightweight event telemetry for product behaviors
38+
- Country/region trends with differential privacy techniques
39+
- Content insights that help editorial and SEO without tracking people
40+
41+
## How Tianji implements privacy by design
42+
43+
Tianji bundles `Website Analytics` + `Uptime Monitor` + `Server Status` into one platform, so you get product and reliability signals together — without data sprawl.
44+
45+
1. Cookie‑less tracking script with hashing and salt rotation
46+
2. IP truncation and geo mapping via in‑house database
47+
3. Aggregation and TTL policies at the storage layer
48+
4. Self‑host, air‑gapped, or region‑pinned deployments
49+
5. Open APIs and export for audits
50+
51+
See docs: [Website Tracking Script](/docs/website/track-script), [Telemetry Intro](/docs/telemetry/intro), and [Server Status Reporter](/docs/server-status/server-status-reporter).
52+
53+
## Deployment options (pick your trust boundary)
54+
55+
[![on‑prem server lights](https://images.unsplash.com/photo-1556607356-d6a622ea735f?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixlib=rb-4.1.0&q=80&w=1200)](https://images.unsplash.com/photo-1556607356-d6a622ea735f?crop=entropy&cs=srgb&fm=jpg&q=85)
56+
57+
- Self‑host with Docker Compose for full data control
58+
- Region‑pinned cloud install if you prefer managed ops
59+
- Hybrid: analytics in‑house, public status pages outside
60+
61+
Install in minutes:
62+
63+
```bash
64+
wget https://raw.githubusercontent.com/msgbyte/tianji/master/docker-compose.yml
65+
docker compose up -d
66+
```
67+
68+
Default account is `admin`/`admin` — remember to change the password.
69+
70+
## Policy templates you can copy
71+
72+
Use these defaults to start, then tighten as needed:
73+
74+
- Retention: 30 days for raw events, 180 days for aggregates
75+
- IP handling: drop last 2 octets (IPv4) or /64 (IPv6)
76+
- PII: deny‑list at ingestion; allow only hashed user IDs under consent
77+
- Geography: pin storage to your primary user region
78+
- Access: least privilege with audit logging enabled
79+
80+
## Implementation checklist
81+
82+
- Map your product’s critical funnels and decide what to measure
83+
- Deploy Tianji with cookie‑less website tracking and telemetry events
84+
- Turn on IP truncation, geo anonymization, and retention TTLs
85+
- Build cohorts by campaign and page groups, not people
86+
- Review monthly: decision value vs. data cost — trim aggressively
87+
88+
## Closing
89+
90+
[![privacy culture](https://images.unsplash.com/photo-1576297185621-93ed9df5ca9a?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixlib=rb-4.1.0&q=80&w=1200)](https://images.unsplash.com/photo-1576297185621-93ed9df5ca9a?crop=entropy&cs=srgb&fm=jpg&q=85)
91+
92+
Privacy‑first analytics is not just possible — it’s the default you should expect. With Tianji, you get actionable product and reliability signals without surveilling users. Less creepiness, more clarity.

0 commit comments

Comments
 (0)