seo-matomo
它能做什么
这项技能把你的智能体连接到 Matomo,这是一款可自托管或云端使用的分析工具。适合希望在不依赖 Google 的情况下获取流量数据的人。
适用场景
- ✓当你想查看哪些页面获得的自然访问最多的时候。
- ✓当你想了解访问者使用哪些国家和设备的时候。
- ✓当你想查看哪些来源页面和关键词带来访客的时候。
技能链接
https://github.com/AgriciDaniel/claude-seo/blob/main/extensions/matomo/skills/seo-matomo/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请从 Matomo 查看我过去 30 天的热门自然流量页面和访客国家。”
每周 5 个新技能,1 分钟读完。
工作原理
该技能使用你的访问令牌调用 Matomo Reporting API,请求你所需的报告并汇总数据。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
seo-matomo
Self-hosted analytics surface. Use Matomo as a privacy-first GA4 alternative
when you own your analytics data, want zero Google dependency, or operate
behind a strict data-residency boundary. The same seo-matomo skill works
against Matomo Cloud and self-hosted instances.
Prerequisites
- Run
extensions/matomo/install.shorinstall.ps1. - A Matomo instance URL (https://analytics.example.com).
- A Matomo API
token_authwithviewaccess on the sites you analyze. - (Optional) A default
idSiteto avoid passing--site-idon every call.
Routing
| Command | Underlying script |
|---|---|
/seo matomo check |
"${CLAUDE_PLUGIN_ROOT}/scripts/claude-seo" run matomo_auth.py --check |
/seo matomo organic [site-id] |
"${CLAUDE_PLUGIN_ROOT}/scripts/claude-seo" run matomo_report.py organic --site-id <id> |
/seo matomo top-pages |
"${CLAUDE_PLUGIN_ROOT}/scripts/claude-seo" run matomo_report.py top-pages |
/seo matomo device |
"${CLAUDE_PLUGIN_ROOT}/scripts/claude-seo" run matomo_report.py device |
/seo matomo country |
"${CLAUDE_PLUGIN_ROOT}/scripts/claude-seo" run matomo_report.py country |
/seo matomo referrers |
"${CLAUDE_PLUGIN_ROOT}/scripts/claude-seo" run matomo_report.py referrers |
/seo matomo keywords |
"${CLAUDE_PLUGIN_ROOT}/scripts/claude-seo" run matomo_report.py keywords |
All commands accept --days (default 28), --limit, --site-id, and
--json. The site ID falls back to MATOMO_SITE_ID from settings.
When this skill applies
- The user wants Google-free analytics or has a Matomo instance already configured. Common in EU privacy-first setups, regulated industries, and teams who own their analytics.
- The user explicitly says "Matomo", "self-hosted analytics", or asks to
replace GA4. For Google Search performance use
seo-google; this skill is the reporting substitute. - The user is migrating from GA4 and wants the same report types (organic trend, landing pages, device / country split, referrer split) sourced from Matomo's Reporting API.
Cross-skill delegation
- For Google Search Console / CrUX / Indexing, route to
seo-google.seo-matomocovers reporting (visits / pages / referrers), not search performance metrics. - For AI Overview / GEO citability work, route to
seo-geo. Matomo offers no LLM-specific signals. - During
/seo audit, the orchestrator spawns theseo-matomoagent (analogous toseo-google) whenever"${CLAUDE_PLUGIN_ROOT}/scripts/claude-seo" run matomo_auth.py --checksucceeds. Both agents can be active simultaneously when the user has both GA4 and Matomo configured.
Self-hosted instance on a private address
Every Matomo request goes through claude-seo's SSRF guard: the instance URL
is validated and DNS-pinned, and a redirect off the instance is refused.
Private, loopback, and link-local addresses are refused by default. When the
user's instance lives on one (http://matomo.internal:8080,
http://192.168.1.20, http://localhost:8080), tell them to name it in the
CLAUDE_SEO_LOCAL_TARGETS allowlist:
export CLAUDE_SEO_LOCAL_TARGETS="matomo.internal:8080"
Entries are host or host:port, comma-separated, matched exactly. The
allowlist covers only the top-level instance URL; redirect targets and every
other host stay fail-closed, and cloud metadata addresses are refused even
when listed. Never suggest disabling the guard or editing url_safety.py:
the allowlist is the supported route. Details in
extensions/matomo/docs/MATOMO-SETUP.md and SECURITY.md.
Error Handling
- Refused by the SSRF guard (error names
CLAUDE_SEO_LOCAL_TARGETS): the instance is on a private address that has not been allowlisted. Give the user the exact export line from the error, which already carries the righthost:port. - Refused redirect: the instance answered a 30x pointing at another host.
MATOMO_URLis pointing at a redirector rather than at the Reporting API. Ask the user for the URL their instance actually serves the API from. - Missing credentials: report which env vars / config keys are unset and
remind the user to run
extensions/matomo/install.shor"${CLAUDE_PLUGIN_ROOT}/scripts/claude-seo" run matomo_auth.py --setup. - HTTP 401/403 from Matomo: the token lacks view access for the given site. Verify the token scope in Matomo Administration -> Personal -> Security -> API Tokens. The skill never logs the token.
result=errorpayloads from Ma
常见问题
连接 Matomo 需要什么?
需要你的 Matomo 网址,以及一个对你的网站具有查看权限的 API 令牌。
我可以设置默认网站吗?
可以。你可以设置默认的网站 ID,这样每次请求时就不必再指定。
它支持 GA4 数据吗?
不支持。该技能只读取 Matomo 数据,可以替代 GA4 使用,也可以与其并用。
详情
作者的原始描述
Matomo Reporting API extension. Self-hosted or Matomo Cloud analytics as a GA4 alternative or complement. Organic traffic, landing pages, device / country breakdowns, referrers, search keywords. Triggers on "Matomo", "self-hosted analytics", "analytics ohne Google", "GA4 alternative", "Matomo Reporting", "Piwik".
repo: AgriciDaniel/claude-seo
热度
- GitHub 星标
- 26k
- 排名
- #9994
- 许可证
- MIT
- 更新时间
- 2026/11/1
评论
- …
同一仓库的更多技能
seo-ahrefs
26k让你的智能体获取网站的实时 Ahrefs 数据,包括反向链接、引荐域名、自然关键词和内容创意。需要 Ahrefs API 令牌。
seo-image-gen
26k帮你的智能体使用 Gemini 制作 SEO 图片,例如社交预览卡片、博客头图和信息图。需要先安装 banana 扩展。
seo-bing
26k帮你的智能体检查 Bing Webmaster Tools 数据,并通过 IndexNow 提交新页面网址,帮助 Bing 发现你的页面。
seo-dataforseo
26k让你的智能体从 DataForSEO 获取实时 SEO 数据,例如搜索结果、关键词搜索量、反向链接和 AI 提及情况。每次调用都会由服务商计费。