Commit d305a45
authored
feat(analytics): load Umami first-party via /_a (ADR-0006 Phase 2c) (#43)
Switch the api.jellyrock.app footer tracker from cross-origin
analytics.jellyrock.app/script.js to the same-origin /_a proxy (live since
infra #27):
<script defer src="/_a/script.js" data-website-id="…"
data-host-url="https://api.jellyrock.app/_a"></script>
Events POST to /_a/api/send → Caddy strips to umami's /api/send. Works under the
current CSP (/_a/script.js is 'self'); shared CSP tightens in the final infra
phase. analytics.jellyrock.app stays live as rollback (Bridge scope).
Verified: jsdoc.json is valid JSON; footer embeds /_a/script.js + data-host-url
with zero analytics.jellyrock.app references.1 parent 6d7a5e3 commit d305a45
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
| 52 | + | |
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| |||
0 commit comments