matomo是一个开源的网站行为分析工具,这篇文章,我们从0到1,安装它!
- 访问matomo的GitHub链接:httpss://github.com/matomo-org/matomo
- readme文档里找到 ,点击进入installation页面
- 可以看到他有专门为WordPress的版本,但是很可惜我的是typecho
- 第一步就是把matomo下载到服务器上,可以选择本机下载然后ftp传上去,也可以ssh到服务器上用wget装这里我选用 wget
-
我在我网站的根目录下面新建了 analytics文件夹,然后在这个文件夹里,执行
wget httpss://builds.matomo.org/matomo.zip && unzip matomo.zip
- 安装且解压缩完后是这样的.输入pwd记一下自己的目前路径
- 然后浏览器访问https://你的域名/analytics/matomo/ 。太真实了。就报错了,没事,小问题
- 我们在你的网站根目录执行 :chown -R www.www analytics/matomo 来赋予matomo权限。即analytics文件夹的父目录执行此命令
- 刷新页面后,就进入了安装页面,点击下一步,会检查你的系统配置信息
- 然后配置数据库信息,可以配置你的网站站点的数据库,配置好后,点击下一步。如果是你本机的服务器的数据库,就可以填写127.0.0.1。也可以新建一个数据库
- 然后继续下一步
- 配置超级用户,然后下一步
- 配置网站信息,下一步。注意我的网站地址这里是https。但是matomo建议是开启SSL也就是HTTPS的。我是建站初期,所以目前没有开HTTPS
- 最后一步,将matomo的代码复制到网站的页面上。
- 我使用的是typehco的joe模板,所以在这里后台,全局设置里,在head标签里塞入这个代码即可
- 最后浏览器访问https://你的域名/analytics/matomo/ 就可以了
如果对你有用,请点个赞吧~~
测试
{!{data:image/webp;base64,UklGRrYRAABXRUJQVlA4WAoAAAAwAAAANQEAKwEASUNDUBgCAAAAAAIYAAAAAAQwAABtbnRyUkdCIFhZWiAAAAAAAAAAAAAAAABhY3NwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAA9tYAAQAAAADTLQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAlkZXNjAAAA8AAAAHRyWFlaAAABZAAAABRnWFlaAAABeAAAABRiWFlaAAABjAAAABRyVFJDAAABoAAAAChnV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