mirror of
https://github.com/hanzo-docs/docs.git
synced 2026-07-27 08:45:03 +00:00
The <script src="analytics.hanzo.ai/script.js" data-website-id> tag is a shim: it talks to a read LENS instead of the one ingestion front door, so a docs site could only ever produce pageviews — no errors, no product events, and a separate per-site id to keep in sync. Replaced across all 12 sites with @hanzo/event POSTing api.hanzo.ai/v1/event, which Cloud fans server-side into the web (analytics), product (insights) and error (sentry) lenses. `product` is the only per-site knob; Cloud resolves the tenant, so no site carries an id any more. One implementation, not twelve: packages/analytics (@hanzo/docs-analytics) mounts the provider, adds a pageview per client-side route change, and honors Global Privacy Control / Do-Not-Track by disabling the client outright. The main hub's inline Insights snippet goes too — that lens is already fed by the one stream. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
33 lines
883 B
JSON
33 lines
883 B
JSON
{
|
|
"name": "insights-docs",
|
|
"version": "0.1.1",
|
|
"private": true,
|
|
"scripts": {
|
|
"build": "next build",
|
|
"dev": "next dev --port 3006",
|
|
"start": "next start",
|
|
"types:check": "@hanzo/docs-mdx && next typegen && tsc --noEmit"
|
|
},
|
|
"dependencies": {
|
|
"@hanzo/docs-analytics": "workspace:*",
|
|
"@hanzo/docs-core": "workspace:*",
|
|
"@hanzo/docs-mdx": "workspace:*",
|
|
"@hanzo/docs-ui": "workspace:*",
|
|
"@hanzo/docs-base-ui": "workspace:*",
|
|
"lucide-react": "^0.562.0",
|
|
"next": "16.1.6",
|
|
"react": "^19.2.3",
|
|
"react-dom": "^19.2.3",
|
|
"tailwind-merge": "^3.4.0"
|
|
},
|
|
"devDependencies": {
|
|
"@tailwindcss/postcss": "^4.1.18",
|
|
"@types/mdx": "^2.0.13",
|
|
"@types/node": "25.0.5",
|
|
"@types/react": "^19.2.8",
|
|
"@types/react-dom": "^19.2.3",
|
|
"postcss": "^8.5.6",
|
|
"tailwindcss": "^4.1.18",
|
|
"typescript": "^5.9.3"
|
|
}
|
|
} |