seo-matomo
Skill này làm gì
Skill này kết nối agent của bạn với Matomo, một công cụ phân tích tự lưu trữ hoặc chạy trên đám mây. Skill dành cho người muốn có dữ liệu lưu lượng mà không phụ thuộc vào Google.
Khi nào nên dùng
- ✓Khi bạn muốn xem những trang nào nhận được nhiều lượt truy cập tự nhiên nhất.
- ✓Khi bạn muốn biết khách truy cập đến từ quốc gia và thiết bị nào.
- ✓Khi bạn muốn xem những nguồn giới thiệu và từ khóa nào đưa khách truy cập đến.
Liên kết skill
https://github.com/AgriciDaniel/claude-seo/blob/main/extensions/matomo/skills/seo-matomo/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Bạn có thể cho tôi xem các trang tự nhiên hàng đầu và quốc gia truy cập từ Matomo trong 30 ngày qua không?”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Skill dùng Matomo Reporting API với token truy cập của bạn. Skill yêu cầu báo cáo bạn cần và tóm tắt dữ liệu.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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
Câu hỏi thường gặp
Tôi cần gì để kết nối Matomo?
Bạn cần địa chỉ web Matomo của mình và một token API có quyền xem các site của bạn.
Tôi có thể đặt website mặc định không?
Có. Bạn có thể đặt ID site mặc định để không phải nêu tên site trong mỗi yêu cầu.
Skill có hoạt động với dữ liệu GA4 không?
Không. Skill chỉ đọc dữ liệu Matomo, và có thể dùng thay cho hoặc song song với GA4.
Chi tiết
Mô tả gốc của tác giả
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
Độ phổ biến
- Sao GitHub
- 26k
- Vị trí xếp hạng
- #9994
- Giấy phép
- MIT
- Cập nhật
- 1/11/2026
Bình luận
- …
Thêm skill từ kho mã này
seo-ahrefs
26kGiúp agent của bạn lấy dữ liệu Ahrefs về website: backlink, tên miền dẫn link, từ khóa tự nhiên, ý tưởng nội dung. Cần token API Ahrefs.
seo-image-gen
26kGiúp agent của bạn tạo hình ảnh SEO như thẻ xem trước mạng xã hội, ảnh bìa blog và infographic, bằng Gemini. Cần cài tiện ích banana trước.
seo-bing
26kGiúp agent của bạn kiểm tra dữ liệu Bing Webmaster Tools và gửi URL trang mới qua IndexNow, để giúp Bing tìm thấy các trang của bạn.
seo-dataforseo
26kGiúp agent của bạn lấy dữ liệu SEO trực tiếp từ DataForSEO: kết quả tìm kiếm, lượng từ khóa, backlink, lượt nhắc đến AI. Mỗi lần gọi bị tính phí.
Skill tương tự
competitive-platform-analysis
280kGiúp bạn hiểu rõ đối thủ cạnh tranh. Công cụ xác định, phân loại và lọc các công ty cạnh tranh trước khi phân tích sâu hơn.
competitive-report-structure
280kTạo báo cáo đối thủ cạnh tranh toàn diện. Kết hợp thông tin để thể hiện bức tranh chung, đề xuất và giúp đồng đội thống nhất hướng đi.
lead-intelligence
280kGiúp agent tìm và liên hệ với những người quan trọng. Phân tích khách hàng tiềm năng, gợi ý cách tiếp cận và quản lý việc liên lạc qua email và mạng xã hội.