Install
openclaw skills install matomoQuery, analyze, and manage Matomo Analytics with API integration, custom reports, and goal tracking.
openclaw skills install matomoOn first use, read setup.md for integration guidelines. The skill stores configuration in ~/matomo/.
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.
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
| Topic | File |
|---|---|
| Setup process | setup.md |
| Memory template | memory-template.md |
| API reference | api.md |
| Report templates | reports.md |
# 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| 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
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, campaignperiod=range requires date=start,end format.| 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.
Data that leaves your machine:
Data that stays local:
This skill does NOT:
Install with clawhub install <slug> if user confirms:
analytics — general analytics patternsumami — privacy-focused analyticsapi — REST API integrationclawhub star matomoclawhub sync