From matomo-analytics
Generate a traffic overview report. Use when the user asks for a traffic summary, weekly/monthly report, site overview, or wants to understand visitor trends.
npx claudepluginhub lucaspretti/claude-plugins --plugin matomo-analyticsThis skill uses the workspace's default tool permissions.
Generate a comprehensive traffic report for a Matomo-tracked site. Default period is last 7 days unless specified in $ARGUMENTS.
Provides UI/UX resources: 50+ styles, color palettes, font pairings, guidelines, charts for web/mobile across React, Next.js, Vue, Svelte, Tailwind, React Native, Flutter. Aids planning, building, reviewing interfaces.
Fetches up-to-date documentation from Context7 for libraries and frameworks like React, Next.js, Prisma. Use for setup questions, API references, and code examples.
Analyzes competition with Porter's Five Forces, Blue Ocean Strategy, and positioning maps to identify differentiation opportunities and market positioning for startups and pitches.
Generate a comprehensive traffic report for a Matomo-tracked site. Default period is last 7 days unless specified in $ARGUMENTS.
If $ARGUMENTS contains a site ID or name, use that. If the conversation already has a site in context, use that. Otherwise, call matomo_list_sites, present a short numbered list (ID, name, URL), and ask which site to analyze. Do not proceed until a site is selected.
Visits summary using matomo_get_visits for the requested period
Real-time snapshot using matomo_get_live_counters (last 30 minutes)
Top pages using matomo_get_top_pages with limit 10
Entry pages using matomo_get_entry_pages with limit 5 to show where visitors land
Traffic sources using matomo_get_search_engines and matomo_get_ai_assistants with limit 5 each
Device segment using matomo_get_devices for the same period to show the desktop vs mobile split. If the user asked for a mobile-only report, pass device: "mobile" to steps 1, 3, 4 instead and note that the whole report is scoped to smartphone+tablet+phablet.
Present as a report with sections:
Keep the report concise and highlight anything unusual (high bounce rates, traffic spikes, etc.).
If a device-filtered call comes back with all-zero metrics while the same
query without device returns normal numbers, the Matomo server is refusing
to aggregate the segment for this API token (it lacks process_new_segment
or the segment isn't pre-archived). Do not claim "no mobile traffic" — that's
almost never the real answer.
Try these in order:
matomo_count_visits_by_segment. It uses the Live API
under the hood and does NOT need segment archiving. For mobile:
{siteId, period, date, device: "mobile"} returns
{visits, byDevice, byCountryTop10}.matomo_list_segments to find saved segments on the instance.
Any segment with auto_archive=1 is pre-archived and will always return
real numbers when you reference its definition string in segment.<matomo-host>/index.php?module=CoreHome&action=index
&idSite=<id>&period=<period>&date=<date>
&segment=deviceType%3D%3Dsmartphone%2CdeviceType%3D%3Dtablet%2CdeviceType%3D%3Dphablet
process_new_segment on the token or pre-archive common segments.