Matomo Analytics
Query, analyze, and manage Matomo Analytics with API integration, custom reports, and goal tracking.
от clawic★ 23 звезды на GitHub
Установить Matomo Analytics в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Setup
On first use, read setup.md for integration guidelines. The skill stores configuration in ~/Clawic/data/matomo/.
When to Use
User needs to query Matomo analytics, generate reports, track goals, or manage their self-hosted analytics. Agent handles API queries, data analysis, visitor insights, and conversion tracking.
Architecture
Memory lives in ~/Clawic/data/matomo/. See memory-template.md for structure.
~/Clawic/data/matomo/
├── memory.md # Sites, credentials ref, preferences
├── reports/ # Saved report templates
└── queries/ # Reusable API query templates
Quick Reference
| Topic | File |
|---|---|
| Setup process | setup.md |
| Memory template | memory-template.md |
| API reference | api.md |
| Report templates | reports.md |
Core Rules
1. Never Expose Credentials
- Token is stored in system keychain or env var, never in memory files
- Refer to credentials by reference name only
- If user pastes token in chat, warn and suggest secure storage
2. Use Reporting API for Reads
# Base pattern
curl -s "https://{matomo_url}/index.php?module=API&method={method}&idSite={site_id}&period={period}&date={date}&format=json&token_auth={token}"
Common methods:
VisitsSummary.get— visitors, visits, pageviewsActions.getPageUrls— top pagesReferrers.getWebsites— traffic sourcesGoals.get— conversion data
3. Understand Date Ranges
| Period | Date Format | Example |
|---|---|---|
day |
YYYY-MM-DD |
2025-01-15 |
week |
YYYY-MM-DD |
Week containing that date |
month |
YYYY-MM |
2025-01 |
year |
YYYY |
2025 |
range |
YYYY-MM-DD,YYYY-MM-DD |
2025-01-01,2025-01-31 |
Special dates: today, yesterday, last7, last30, lastMonth, lastYear
4. Handle Multi-Site Setups
- Always confirm which site before querying
- Store site list in memory.md with idSite mappings
- Default to most-used site if configured
5. Format Data for Humans
- Round percentages to 1 decimal
- Use K/M suffixes for large numbers
- Compare periods when context helps (vs last week/month)
- Highlight significant changes (>10% delta)
6. Respect Rate Limits
- Batch related queries into single date range when possible
- Cache recent results in memory for follow-up questions
- Avoid querying same data repeatedly in conversation
7. Use Segments for Deeper Insights
Segments filter data by visitor attributes. Add &segment= to any query:
# Mobile visitors only
&segment=deviceType==smartphone
# From specific country
&segment=countryCode==US
# Returning visitors who converted
&segment=visitorType==returning;goalConversionsSome>0
# Combine with AND (;) or OR (,)
&segment=browserCode==CH;operatingSystemCode==WIN
Common segment dimensions:
deviceType— smartphone, tablet, desktopbrowserCode— CH (Chrome), FF (Firefox), SF (Safari)countryCode— ISO 2-letter codevisitorType— new, returningreferrerType— direct, search, website, campaign
Matomo Traps
- Wrong idSite → querying wrong property, misleading data. Always confirm site first.
- Forgetting token_auth → 403 or empty response. Token required for all non-public methods.
- date vs period mismatch → confusing results.
period=rangerequiresdate=start,endformat. - Expecting GA terminology → Matomo uses "visits" not "sessions", "actions" not "events". Translate mentally.
- Ignoring segments → missing the real insight. Segments filter data by visitor attributes.
External Endpoints
| Endpoint | Data Sent | Purpose |
|---|---|---|
{user_matomo_url}/index.php |
API method, site ID, date range, auth token | Query analytics data |
No other data is sent externally. All requests go to user's own Matomo instance.
Security & Privacy
Data that leaves your machine:
- API queries sent to user's Matomo instance only
- Auth token included in requests (user-controlled)
Data that stays local:
- Site configurations in ~/Clawic/data/matomo/
- Report templates
- No data sent to third parties
This skill does NOT:
- Store auth tokens in plain text
- Send data to any service except user's Matomo
- Access files outside ~/Clawic/data/matomo/
Related Skills
More Clawic skills, get them at https://clawic.com/skills/ (install if the user confirms):
analytics— general analytics patternsumami— privacy-focused analyticsapi— REST API integration
Feedback
- If useful, star it: https://clawic.com/skills/matomo
- Latest version: https://clawic.com/skills/matomo
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- _meta.json
- api.md
- memory-template.md
- reports.md
- setup.md
FAQ
Что делает скилл Matomo Analytics?
Query, analyze, and manage Matomo Analytics with API integration, custom reports, and goal tracking.
Как установить скилл Matomo Analytics?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Matomo Analytics запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
AnthropicCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
discernment-nudge
AnthropicAfter you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
data-consolidate
AnthropicJoins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
inspection-to-capa
AnthropicRuns the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…