Connect Matomo to Claude

Connect Matomo to Claude with Supermetrics and turn your Matomo data into answers, reports, and next steps without leaving Claude.

Don’t take our word. Try it free today.

Illustrative Claude response for Matomo: Use Supermetrics. Show Matomo visits, converted visits and goal revenue by channel type for October 2026.

At a glance

What it does

Claude reads your Matomo web analytics through Supermetrics: visits, pages, acquisition channels, site search, events, ecommerce and goals.

What you need

To connect, you need your Matomo base URL and an authentication token.

Cloud or on-premise

Works with Matomo Cloud and on-premise installs.

Read-only

Through the Supermetrics connector, Claude can read your Matomo reports but can’t change anything in Matomo.

Before you start

Claude

You add Supermetrics in Claude from Customize, under Connectors, by searching for Supermetrics (Supermetrics for Claude docs). Anthropic describes remote connectors in its custom connectors guide.

Supermetrics

You don’t have to buy anything first: logging in creates a trial when your team has no subscription. If your team already pays, check the Supermetrics Hub for an AI chats destination. If there isn’t one, upgrade or swap a current destination for AI chats.

The connection keeps the email and team from your first login. That matters if you buy a plan later under a different email (Supermetrics for Claude docs). Plans are on the pricing page.

Matomo

You need your Matomo base URL and an authentication token (Matomo connection guide).

Full Matomo access requirements

  • Your base URL is the part of your dashboard address before index.php, for example https://yourcompany.matomo.cloud.
  • The URL must include https:// and be publicly accessible.
  • An on-premise install must be reachable from the internet. A VPN-only setup won’t work with Supermetrics.

To create the token, you need your Matomo password:

  1. In Matomo, open Administration (the cogwheel).
  2. Under Personal, choose Security.
  3. Find Auth tokens and create a new token.
  4. Enter your password, add a description and save the token.
  5. Store the token securely.

Developer background is at developer.matomo.org.

Start here

How do you connect Matomo to Claude?

1

Add Supermetrics to Claude. Click Try in Claude on the Supermetrics for Claude page, or search for Supermetrics under Customize, then Connectors.

Option A: from the Supermetrics site
2

Pick your team. Log in to Supermetrics and choose the team the connector should use. A team without a subscription starts its trial here.

3

Authorize Matomo in the Hub. Open Matomo in the Supermetrics Hub, or follow the login link Claude shows. Enter the base URL and token, name the account and click Start.

Illustrative Matomo interface showing administration.Illustrative Supermetrics Hub form for connecting Matomo.
4

Name Supermetrics in your prompt. If several data tools are connected, say “use Supermetrics” so Claude picks the right connector. Choose the Matomo account (site) when Claude asks.

5

Ask Claude a small question. Include a date range in your prompt. Try: “Use Supermetrics. Show Matomo visits and bounce rate by channel type for the last 14 days.”

6

Check it, then go deeper. Compare the totals with the Matomo dashboard for the same dates. If they match, move on to pages, site search, ecommerce or goals.

Building your own agent or n8n workflow instead? Use the standalone Supermetrics MCP server, which needs a Supermetrics subscription with API access. For more setup help, see the AI tools connection guide.

What can you ask Claude about Matomo?

Swap the dates and thresholds for your own.

Goal

Prompt

What you get

Reporting

Use Supermetrics. Summarize Matomo visits, bounce rate and average visit duration by month for January 1 to October 31, 2026.

A month-by-month table of visits, bounce rate and visit length

Reporting

Which 10 pages got the most pageviews in October 2026, and how long did people stay on each?

A ranked list of pages with views and time on page

Diagnosis

Which pages had the highest exit rate in October 2026, among pages with over 500 entrances?

A list of the pages where visits most often end

Comparison over time

Compare converted visits by channel type for Q3 2026 with Q2 2026.

A two-quarter table by channel

Cross-source

Show Matomo revenue by channel next to Google Ads cost for October 2026, so I can estimate ROAS for paid search.

Revenue and spend side by side, with the ratio calculated

Action

Turn October 2026 visits, converted visits and revenue by channel into a dashboard in Supermetrics Studio.

A Studio dashboard. AI chats allows viewing and sharing, while editing needs a Studio destination subscription

More example prompts

Goal

Prompt

What you get

Diagnosis

What did visitors search for on our site in the last 30 days, and which searches ended the visit?

Search terms with how often each one ended the visit

Diagnosis

Which products sold the fewest units in Q3 2026 despite high pageviews? Run it as two queries.

Two lists to compare: units sold and product page views

Cross-source

Compare Matomo search engine visits with Google Search Console clicks by week for the last 12 weeks.

Two weekly series lined up by date

Comparison over time

Compare goal conversions for new and returning visits month by month for 2026 so far.

A monthly trend split by new and returning visits

More patterns are in the AI chats use cases.

Compare converted visits by channel type for Q3 2026 with Q2 2026

What can you do with Matomo data in Claude?

Start with one report and one question, then let Claude suggest the next cut. Channels tell you where visits come from, and pages show where they leave. Site search shows what visitors look for, and goals show what each visit earned.

Channels that convert

See which channels bring visitors who convert and buy. Claude compares visits, converted visits, conversions and revenue by channel type.

Find where visitors leave

Claude shows entrances, exits, exit rate, time on page and load time for each page.

Read site search demand

See what visitors look for on your site and which searches end the visit.

Check ecommerce revenue

Pair total revenue, orders and average order value with revenue by product.

Track goals

See conversions and revenue for each goal, split by new and returning visits.

Compare campaigns and keywords by engagement and conversions

Claude shows visits, bounce rate and converted visits for each tagged campaign.

The Supermetrics Matomo field list gives entrances and exits per page but no page-to-page paths, so Claude can’t trace a visitor’s route through this connector. For routes, use the Funnels & Flows reports in Matomo itself.

Find products people view but don’t buy

Compare traffic with revenue by channel to find channels that bring visits but no money. For products, compare units sold with pageviews for the matching product pages. Units sold and pageviews sit in different report types, so this takes two separate queries.

Spot drop-off at checkout

The Supermetrics Matomo field list has no abandoned cart field, so Claude can’t count abandoned carts through this connector. Matomo reports abandoned carts natively in its Ecommerce reports (Matomo ecommerce FAQ). As rough signals in Claude, compare ecommerce visits with orders. In a separate query, check the exit rate for your cart and checkout pages.

How do you combine Matomo with other data in Claude?

Matomo can sit beside your other Supermetrics sources in one chat.

Search impressions and visits

With Google Search Console in Claude, ask whether weeks with more impressions brought more search engine visits.

Migration check

With Piwik PRO in Claude, compare visit counts during a migration to see how the two tools measure the same days.

Revenue against ad spend

Pair Matomo revenue by channel with spend from Google Ads in Claude or Facebook Ads in Claude. Claude calculates the ratio.

Sources only join on a shared dimension. Date works because both sources have it. To compare by campaign, tag your links with the same campaign names you use in your ad platforms. Revenue and cost may use different currencies, so state each one.

What Matomo data can Claude query?

The Supermetrics Matomo field list has 222 metrics and 408 dimensions across 22 report types: visitor_overview, visitor_locations, visitor_city, visitor_language, visitor_devices, pages, page_titles, site_search, outlinks, downloads, events, event_action_and_name, channels, referrers, search_engines, search_keywords, social_networks, campaigns, campaign_keywords, ecommerce_overview, ecommerce_products and goal_overview.

Every field belongs to one report type, and its ID starts with that type, such as pages__pageviews. One query uses one report type, so pages__pageviews and channels__visits need two queries. Ask Claude which report type each field needs, or let it split the question for you.

Field IDs below come from the Supermetrics Matomo field list.

Report type group

What it covers

Example field IDs

Visitors (overview, country, city, language, device)

Visits, users and engagement by visitor attribute

visitor_overview__visits, visitor_overview__bounce_rate, visitor_city__city, visitor_devices__device_type

Behavior: pages and page titles

Pageviews, entrances, exits and timing per page

pages__page_url, pages__pageviews, pages__exit_rate, page_titles__page_title

Behavior: site search, outlinks, downloads

What people search, click out to and download

site_search__keyword, outlinks__clicks, downloads__download_url

Behavior: events

Event categories, actions and names with values

events__event_categories, events__number_events, event_action_and_name__event_name

Acquisition: channels, referrers, search, social

Where visits come from, with conversions and revenue

channels__channel_type, referrers__referrer, search_engines__search_engine, social_networks__social_network

Acquisition: campaigns

Campaign names and keywords

campaigns__campaign_name, campaign_keywords__keywords_per_campaign__keyword

Ecommerce

Orders, revenue and products

ecommerce_overview__total_revenue, ecommerce_products__product_name, ecommerce_products__quantity

Goals

Goal definitions and conversions

goal_overview__goal_name, goal_overview__goal__nb_conversions, goal_overview__goal__revenue

Revenue fields and multiple sites

Situation

What happens

What to do

Revenue and conversion fields

Not every report has them. visitor_overview and campaigns have converted_visits but no revenue field

Use channels, referrers, social_networks or goal_overview for revenue

Multiple sites

Each Matomo website is one account (Good to know about Matomo). Website name and ID fields repeat per report type, such as pages__website_name and pages__website_id

Ask Claude to split by site

Matomo field glossary

Meanings are based on the field descriptions in the Supermetrics Matomo field list.

Field ID

Plain-English meaning

Type

Watch out

visitor_overview__visits

Number of visits

Metric

A visit isn’t a user. See visitor_overview__users for unique active users

visitor_overview__bounce_rate

Percentage of visits that bounced

Metric

Already calculated per row, so don’t sum or average rows

visitor_overview__avg_visit_duration

Average duration of a visit, in seconds

Metric

Already calculated per row, and in seconds

pages__pageviews

The number of times this page was viewed

Metric

Compare with pages__unique_pageviews, which counts visits

pages__exit_rate

The percentage of visits that left the website from this page

Metric

Already calculated per row, so don’t sum or average rows

pages__page_url

Full URL of the page

Dimension

channels__revenue

Total revenue of goal conversions

Metric

Revenue is in the site’s currency

site_search__searches

The number of visits that searched

Metric

Counts visits, so one visit with five searches counts once

ecommerce_overview__total_revenue

Total revenue generated by products

Metric

Monetary. Orders sit in ecommerce_overview__ecommerce_orders

ecommerce_products__average_price

Average revenue for the product

Metric

Already calculated per row, and monetary

goal_overview__goal__nb_conversions

Total number of conversions on the website

Metric

Goal definitions can be marked deleted, see goal_overview__deleted

pages__website_name

Website name

Dimension

Use with pages__website_id to split several sites

Date fields repeat per report type, for example pages__date and channels__date.

What is the Matomo MCP connector for Claude?

The Matomo MCP connector for Claude is the Supermetrics connector that lets Claude read your Matomo data through the Model Context Protocol (MCP).

The Model Context Protocol (MCP) is an open standard that lets an AI application call outside tools and read outside data (modelcontextprotocol.io). The Supermetrics connector is one such tool. Ask about landing pages, and Claude picks the Matomo report type that fits, Supermetrics queries your instance, and the rows return to the chat.

Matomo describes its product as GDPR-compliant analytics with full data ownership. Claude reads the report fields Supermetrics lists for Matomo, covering visitors, behavior, acquisition, ecommerce and goals. These fields are report-level aggregates, so raw visitor logs aren’t included.

Use AI chats to ask questions in Claude. For custom agents, n8n workflows or other MCP clients, use the standalone Supermetrics MCP server.

How Matomo data reaches Claude

Which way should you connect Matomo to Claude?

Approach

Setup effort

Data scope

Cross-source blending

Maintenance

Best for

Supermetrics connector for Claude

Low: add the connector, enter the URL and token once

Matomo plus other sources in your Supermetrics account

Yes, in one chat

Supermetrics holds the connection. You replace the token if it’s revoked

Analysts and marketers who want answers in chat

Supermetrics MCP server (custom client)

Medium: you configure an MCP host

Same sources as above

Yes, if your agent merges results

You maintain the client

Engineers building agents

Matomo MCP server (official, from Matomo)

Medium: a Superuser enables it. Included with Matomo Cloud. On-Premise needs the MCP Server plugin

Matomo only

No, unless you add other tools

You manage access with a Matomo API token or OAuth 2.0

Questions that stay inside Matomo, including actions in Matomo if you enable them

CSV export and upload

Low, repeated each time

One report per file

Only if you merge files yourself

Manual

A one-off report

Direct API and custom code

High: auth, report calls and mapping

Whatever you code

Whatever you code

You own it

Developers who need every Matomo API method

Choose the Supermetrics connector for Claude if you want Matomo answers without code, or want site behavior beside ad spend from another source.

Choose the Supermetrics MCP server if you run your own agent or n8n flow and need to control the client.

Choose Matomo’s own MCP server or tools if your questions stay inside Matomo, or you want raw visit logs, segments or actions in Matomo.

Choose CSV or the API if you need one frozen export (CSV) or a pipeline you fully control (API).

When is this not the right tool?

Chat answers suit questions you ask now. For other jobs, use Matomo’s own tools or another Supermetrics connector.

How do you check Claude’s Matomo numbers?

Before you share a figure, ask Claude to show the query and the fields it used. Then compare one total, such as visits, with the Matomo dashboard for the same dates and site. If the numbers differ, work through this table.

What to check

Why numbers can differ

What to do

Date range

Claude may use a different period than you meant

Include a date range in your prompt and match it in Matomo

Matomo site

With several sites, the query may read a different account

Name the site, or ask Claude to split by site

Visits and users

Visits can be read as users

Check whether the figure is visits, users or unique_visitors

Pageviews

Pageviews can be read as unique pageviews

Check whether the field is pages__pageviews or pages__unique_pageviews

Rates and averages

Bounce rate, exit rate and averages are already calculated per row

Request the grouping in the query. Don’t sum or average rows by hand

Units

Durations are in seconds, and revenue is in the site’s currency

Convert units before you compare

Report type

Each field belongs to one report type

Check the field in the glossary above

Troubleshooting

Symptom

Likely cause

Fix

LICENSE_NOT_FOUND

Claude is connected under an older email address or a different team than the one that holds the subscription

Work out which email and team own the paid plan, then disconnect Supermetrics in Claude Connectors, reconnect and choose that team

Answers come from the wrong team, or Supermetrics is skipped

The first login chose another team, or competing data tools are connected

Reconnect Supermetrics in Claude Connectors with the right team, and write “use Supermetrics” in your prompt

“No accounts found”

The URL and token used don’t give access to a site

Follow How to fix No accounts found errors, then re-enter the URL and token in the Hub

Matomo is reported as not authorized

The Hub has no live Matomo connection

Request the Matomo login link from Claude, or reconnect in the Hub, then run the query again

The connection to a private install fails

The base URL isn’t publicly accessible. A VPN-only setup won’t work

Make the URL reachable from the internet

The connection fails on the URL

The base URL lacks https:// or includes index.php

Use the part before index.php, with https:// in front, such as https://yourcompany.matomo.cloud

The token doesn’t work

It may have been copied incompletely, or deleted in Matomo

Create a new token under Administration, Security, Auth tokens, and re-enter it

A query fails when combining pages and channels

The fields belong to different report types

Run two queries, for example pages__page_url with pages__pageviews, and channels__channel_type with channels__visits

Still stuck

Something else

When a query that used to work fails, reconnect Matomo in the Hub first.

Is it safe? Security and data handling

  • Claude asks Supermetrics for the fields your question needs and shows the results in the chat.
  • Through the Supermetrics connector, Claude reads Matomo reports. It can’t change Matomo settings, goals or tracking.
  • The only thing Claude creates is a Supermetrics Studio dashboard, if you ask for one.
  • Your authentication token gives API access to your Matomo, so treat it like a password. Enter it in the Hub, never in a Claude prompt.
  • Give the token a clear description so you can find it later.
  • AI chats data-source connections are shared by default. Team members assigned to the subscription can use shared logins, so review team membership and subscription access before connecting client accounts. Anyone who can open the Claude chat can see its returned results.
  • How long Anthropic keeps your chats depends on your Claude plan. See Anthropic’s retention pages for consumer plans and organization plans.
  • For Supermetrics policies, see the Supermetrics Trust Center.

Related connectors

Send Matomo data to BigQuery to keep analytics history in a warehouse

Report on Matomo in Looker Studio for scheduled traffic dashboards

Analyze Matomo in Google Sheets for spreadsheet views of pages and channels

Connect Piwik PRO to Claude to compare data from a second analytics tool

Connect Google Search Console to Claude to compare search impressions with site visits

Supermetrics for Claude for a list of supported data sources

FAQ

Start asking Claude about your Matomo data

Add the connector and enter your Matomo URL and token once. Then ask your first question in plain language.