---
title: Deploy Matomo with AI on Blossom
url: "/deploy/matomo/"
canonical_url: https://blossom88.com/deploy/matomo/
markdown_url: https://blossom88.com/deploy/matomo.md
summary: Track pageviews with Matomo and keep your analytics dashboard private.
categories:
- deployment
- analytics
- monitoring
stack:
- PHP
- MySQL
- Apache
---

# Deploy Matomo with AI on Blossom

[Matomo](https://matomo.org/) is a web analytics platform for tracking
visits, pageviews, and conversions. Its Visitors Log shows the pages people
viewed during a visit.

![A checkout confirmation pageview in the Matomo Visitors Log.](/deploy/assets/images/matomo/visitor-log.webp)

## Ask Your Agent

> **Ask your AI agent:** Deploy Matomo on Blossom and help me track my first pageview.
>
> Follow this guide: https://blossom88.com/deploy/matomo/

[Install the Blossom CLI and skill](https://docs.blossom88.com/learn/getting-started/install/) on your agent's machine and [choose a Location in your cloud account](https://docs.blossom88.com/learn/getting-started/choose-your-cloud/#connect-your-provider).

## Track Your First Pageview

Add your website in Matomo and place its tracking snippet on a test page.
Open the page, then look for the visit in your Visitors Log.

<details class="optional-reading" markdown="1">
<summary>Deployment setup and commands</summary>

Run the [official Matomo Apache image](https://github.com/matomo-org/docker)
on one Persistent Service. Mount its Volume at `/var/www/html` to retain
Matomo's configuration. Link Blossom Managed MySQL and map the connection
to the image's `MATOMO_DATABASE_*` variables before starting Apache. Finish
the install wizard behind Blossom Account access.

Once setup is complete, set `/matomo.php` and `/matomo.js` as Public paths
so a browser on your website can load the tracker and submit a pageview.
Keep the dashboard behind Blossom Account access.

    blossom profile:show
    blossom app:create --data app.yml
    blossom environment:create --data environment.yml
    blossom database_instance:create --data mysql.yml
    blossom environment_link:create --data database-link.yml
    blossom service:create --data web.yml
    blossom environment:deploy --id environment-100 --follow

</details>

## What You Get

- A private Matomo dashboard with a public pageview tracker
- Analytics history in managed MySQL
