Matomo Analytics
by @ivangdavila
Query, analyze, and manage Matomo Analytics with API integration, custom reports, and goal tracking.
clawhub install matomoπ About This Skill
name: Matomo Analytics slug: matomo version: 1.0.1 homepage: https://clawic.com/skills/matomo description: Query, analyze, and manage Matomo Analytics with API integration, custom reports, and goal tracking. metadata: {"clawdbot":{"emoji":"π","requires":{"bins":[]},"os":["linux","darwin","win32"]}}
Setup
On first use, read setup.md for integration guidelines. The skill stores configuration in ~/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 ~/matomo/. See memory-template.md for structure.
~/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
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 data3. 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
5. Format Data for Humans
6. Respect Rate Limits
7. Use Segments for Deeper Insights
Segments filter data by visitor attributes. Add&segment= to any query:# Mobile visitors only
&segment=deviceType==smartphoneFrom specific country
&segment=countryCode==USReturning visitors who converted
&segment=visitorType==returning;goalConversionsSome>0Combine 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, campaignMatomo Traps
period=range requires date=start,end format.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:
Data that stays local:
This skill does NOT:
Related Skills
Install withclawhub install if user confirms:
analytics β general analytics patternsumami β privacy-focused analyticsapi β REST API integrationFeedback
clawhub star matomoclawhub syncβ‘ 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.
βοΈ Configuration
On first use, read setup.md for integration guidelines. The skill stores configuration in ~/matomo/.