Vince fixed

This commit is contained in:
2026-09-06 16:34:23 +00:00
parent 605b4b16cc
commit 3929d3f0b2
6 changed files with 54 additions and 14 deletions
+11 -5
View File
@@ -72,13 +72,19 @@ Shopify (shop.mozimo.in) ─ purchase/checkout ──► same GA4 property
### 2.4 Vince (first-party layer)
1. `./deploy.sh` once (the playbook creates the container + Caddy route).
2. Open `https://<www_host>/stats/` → register the admin account (first
visit only). Then **Add a website** with domain `mozimo.in`.
1. `./deploy.sh` once the playbook creates the container (`command: serve`)
with `VINCE_ADMIN_NAME` / `VINCE_ADMIN_PASSWORD` from
`ansible/vars/default.yml` (change the password there before deploying)
and auto-creates the `mozimo.in` site via `VINCE_DOMAINS`.
2. Add a DNS record for `stats.mozimo.in` (same server IP) — Caddy publishes
the dashboard there; log in at `https://stats.mozimo.in/login` with the
admin name/password from the ansible vars.
3. Set `VITE_PLAUSIBLE_DOMAIN=mozimo.in` in your local `.env` and redeploy —
the script tag is injected only when this is set.
the script tag (with `data-api="/stats/api/event"`) is injected only when
this is set.
4. Check `https://<www_host>/stats/js/script.js` returns the script (200)
and that browsing the site populates the dashboard within seconds.
and that browsing the site populates `stats.mozimo.in/<domain>` within
seconds.
5. With uBlock Origin enabled: visits still appear in Vince but not GA4 —
expected and exactly why this layer exists.