# Matomo快速入门

<br>

<figure><img src="https://libs.websoft9.com/Websoft9/DocsPicture/zh/matomo/matomo-show-websoft9.png" alt=""><figcaption></figcaption></figure>

部署 创达睿通 提供的 Matomo 之后，请参考下面的步骤快速入门。

### 准备[​](https://support.websoft9.com/docs/matomo#prepare) <a href="#prepare" id="prepare"></a>

1. 在云控制台获取您的 **服务器公网IP地址**
2. 在云控制台安全组中，确保 **Inbound（入）规则** 下的 **TCP:80** 端口已经开启
3. 在服务器中查看 Matomo 的 **默认账号和密码**
4. 若想用域名访问 Matomo，务必先完成 **域名五步设置** 过程

### Matomo 初始化向导[​](https://support.websoft9.com/docs/matomo#wizard) <a href="#wizard" id="wizard"></a>

#### 详细步骤[​](https://support.websoft9.com/docs/matomo#%E8%AF%A6%E7%BB%86%E6%AD%A5%E9%AA%A4) <a href="#xiang-xi-bu-zhou" id="xiang-xi-bu-zhou"></a>

1. 使用本地电脑浏览器访问网址：*<http://域名>* 或 *<http://服务器公网IP>*, 进入初始化页面&#x20;

   <figure><img src="https://libs.websoft9.com/Websoft9/DocsPicture/zh/matomo/matomo-init1-websoft9.png" alt=""><figcaption></figcaption></figure>
2. 设置管理员账号：点击【Next】，直到 Superuser 页面设置用户名，密码和登陆邮件账号并牢记&#x20;

   <figure><img src="https://libs.websoft9.com/Websoft9/DocsPicture/zh/matomo/matomo-init2-websoft9.png" alt=""><figcaption></figcaption></figure>
3. 添加监控网站：点击【Next】，设置站点名称，时区，URL&#x20;

   <figure><img src="/files/BHkiswFXQa14pjmoqGVT" alt=""><figcaption></figcaption></figure>
4. 完成初始化向导，进入登录页面&#x20;

   <figure><img src="https://libs.websoft9.com/Websoft9/DocsPicture/zh/matomo/matomo-login-websoft9.png" alt=""><figcaption></figcaption></figure>
5. 登录后台，复制追踪代码到监控网站页面，并查看监控数据&#x20;

   <figure><img src="https://libs.websoft9.com/Websoft9/DocsPicture/zh/matomo/matomo-main-websoft9.png" alt=""><figcaption></figcaption></figure>

#### 碰到问题？[​](https://support.websoft9.com/docs/matomo#%E7%A2%B0%E5%88%B0%E9%97%AE%E9%A2%98) <a href="#peng-dao-wen-ti" id="peng-dao-wen-ti"></a>

若碰到问题，请第一时刻联系 **技术支持**。也可以先参考下面列出的问题定位或 **FAQ** 尝试快速解决问题。

### Matomo 使用入门[​](https://support.websoft9.com/docs/matomo#quickstart) <a href="#quickstart" id="quickstart"></a>

下面以 **××××** 作为一个任务，帮助用户快速入门：

### Matomo 常用操作[​](https://support.websoft9.com/docs/matomo#guide) <a href="#guide" id="guide"></a>

### 参数[​](https://support.websoft9.com/docs/matomo#parameter) <a href="#parameter" id="parameter"></a>

Matomo 应用中包含 Docker, Portainer 等组件，可通过 **通用参数表** 查看路径、服务、端口等参数。

通过运行 `docker ps`，查看 Matomo 运行时所有的服务组件：

```
CONTAINER ID   IMAGE               COMMAND                  CREATED       STATUS       PORTS                                   NAMES
55278a64ce01   phpmyadmin:latest   "/docker-entrypoint.…"   3 hours ago   Up 3 hours   0.0.0.0:9090->80/tcp, :::9090->80/tcp   phpmyadmin
c17ad9f95f74   matomo:latest       "/entrypoint.sh apac…"   3 hours ago   Up 3 hours   0.0.0.0:9001->80/tcp, :::9001->80/tcp   matomo
ead45db0cdab   mysql:5.7           "docker-entrypoint.s…"   3 hours ago   Up 3 hours   3306/tcp, 33060/tcp                     matomo-db
```

#### 路径[​](https://support.websoft9.com/docs/matomo#path) <a href="#path" id="path"></a>

Matomo 数据目录： */data/apps/matomo*\
Matomo 数据目录： */data/apps/matomo/data/matomo*

#### 端口[​](https://support.websoft9.com/docs/matomo#port) <a href="#port" id="port"></a>

除 80, 443 等常见端口需开启之外，以下端口可能会用到：

| 端口号  | 用途                 | 必要性 |
| ---- | ------------------ | --- |
| 9090 | 数据库可视化工具phpmyadmin | 可选  |

#### 版本[​](https://support.websoft9.com/docs/matomo#version) <a href="#version" id="version"></a>

```
docker exec -it matomo cat /var/www/html/core/Version.php|grep "const VERSION ="|cut -d"=" -f2
```

#### 服务[​](https://support.websoft9.com/docs/matomo#service) <a href="#service" id="service"></a>

```
sudo docker start | stop | restart | stats matomo
sudo docker start | stop | restart | stats matomo-db
sudo docker start | stop | restart | stats phpmyadmin
```

#### 命令行[​](https://support.websoft9.com/docs/matomo#cli) <a href="#cli" id="cli"></a>

暂无

#### API[​](https://support.websoft9.com/docs/matomo#api) <a href="#api" id="api"></a>

[Matomo API Documentation](https://matomo.org/guide/apis/)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.imdcinsights.com/ying-yong-zhong-xin/shu-ju-yu-fen-xi/matomo-kuai-su-ru-men.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
