Audit and fix accessibility issues across the portfolio to ensure WCAG 2.1 AA compliance.
中文简介正在准备中。当前显示原文说明。
Configure and manage Umami analytics tracking for the portfolio.
中文简介正在准备中。当前显示原文说明。
查看安装方法安装前可以查看交给 AI 代理的指令内容。
The portfolio uses Umami (cloud.umami.is) for privacy-first analytics. This skill covers configuring, customizing, and reviewing Umami tracking.
src/components/ui/Analytics.tsxnext.config.js (script-src, connect-src)umamicloud.umami.is with a 200 statusAnalytics.tsx and CSP headersUmami supports custom events via the umami global:
// Track a CTA click
window.umami?.track('CTA Clicked', { section: 'hero', button: 'resume' });
// Track a project view
window.umami?.track('Project Viewed', { project: slug, type: 'live' });
// Track a blog post read
window.umami?.track('Blog Read', { post: slug, category });
Where to add events:
'CTA Clicked''Project Viewed''Blog Read''Cert Expanded''Contact Submitted'If the Umami script URL or website ID changes:
src/components/ui/Analytics.tsxnext.config.js:
script-src → add the new Umami domainconnect-src → add the new Umami API domain| Metric | Where to find | What to look for |
|---|---|---|
| Page views | Dashboard → Overview | Trends over time |
| Unique visitors | Dashboard → Overview | Growth trajectory |
| Top pages | Pages → Page views | Which sections get traffic |
| Referrers | Referrers → Source | Where visitors come from |
| Events | Events → Custom events | CTA engagement, project views |
| Bounce rate | Dashboard → Overview | < 50% is good |
| Average duration | Dashboard → Overview | > 2min is good |
The Sanity siteSettings document has analytics fields:
analytics.ga4MeasurementId — GA4 ID (not wired up, schema-only)analytics.plausibleDomain — Plausible domain (not wired up, schema-only)analytics.enableVercelAnalytics — Vercel Analytics toggle (not wired up)These are not connected to the frontend. Only Umami is active.
No data in Umami dashboard:
cloud.umami.isAnalytics.tsx matches the Umami dashboardCustom events not showing:
window.umami is defined (add console.log(window.umami))Duplicate page views:
defer attribute还没有评价。欢迎分享你的使用感受。
无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。
还没有评论。来写第一条吧。
Audit and fix accessibility issues across the portfolio to ensure WCAG 2.1 AA compliance.
中文简介正在准备中。当前显示原文说明。
Creates a new blog post document in the Sanity studio. Use when the user wants to write a blog post, publish an article, or schedule a future post.
中文简介正在准备中。当前显示原文说明。
Creates a new certification document in the Sanity studio. Use when the user wants to add a credential, certificate, or professional accreditation to the Certifications collection.
中文简介正在准备中。当前显示原文说明。
Adds a new skill MD file to the studio's skills collection. Use when the user wants to author a new step-by-step recipe for the studio's in-app Skills tool or the .agents mirror.
中文简介正在准备中。当前显示原文说明。
Creates a new project document in the Sanity studio. Use when the user wants to add a new portfolio project, a case study, or a work sample to the Projects collection.
中文简介正在准备中。当前显示原文说明。
Creates a new experience document in the Sanity studio. Use when the user wants to add a job, role, internship, or work history entry to the Experience collection.
中文简介正在准备中。当前显示原文说明。