前端埋点 matomo地理位置配置(二)

18 篇文章 0 订阅
13 篇文章 0 订阅

matomo地理位置配置(二)

简介

如下图matomo 使用默认的地理位置是无法获取位置的,后续我们来解决此问题
在这里插入图片描述

地理位置配置

  • 如图进入设置->系统->地理位置
    在这里插入图片描述

  • 默认的地理位置查询以访客的浏览器猜测国家。 不是很准确,官方建议安装并使用地理位置数据库。

    可以如图自动安装GeoIP数据库,也可以手动操作,我这边选择手动安装

在这里插入图片描述

在这里插入图片描述

手动安装配置DBIP

从 dbip 下载 DBIP City Lite数据库

https://db-ip.com/db/lite.php?refid=mtm
在这里插入图片描述

https://db-ip.com/db/download/ip-to-city-lite
在这里插入图片描述

dbip 配置

  • 解压缩dbip-city-lite-2021-03.mmdb.gz文件并将结果’dbip-city-lite-2021-03.mmdb’并将其重命名为DBIP-City.mmdb
  • 将DBIP-City.mmdb 上传到 Matomo misc 目录中,(您可以通过FTP或SSH进行此操作)。
app@192-181-4-157:~/matomo/misc$pwd
/home/app/matomo/misc
app@192-181-4-157:~/matomo/misc$ll
total 96060
drwxr-xr-x 2 app app       50 Feb 22 12:31 composer
drwxr-xr-x 2 app app       79 Feb 22 12:31 cron
-rw-r--r-- 1 app app 98360082 Mar  1 09:05 DBIP-City.mmdb
-rw-r--r-- 1 app app      341 Feb 22 12:31 How to install Matomo.html
drwxr-xr-x 2 app app      120 Feb 22 12:32 log-analytics
drwxr-xr-x 2 app app      144 Feb 22 12:31 others
drwxr-xr-x 2 app app       22 Feb 22 12:31 proxy-hide-piwik-url
drwxr-xr-x 2 app app       39 Mar  1 15:51 user
  • 重新加载此屏幕。 现在将为 DBIP / GeoIP(PHP)提供程序提供已安装。选择它。
    在这里插入图片描述

  • 大功告成! 您只需将Matomo设置为使用DBIP,这意味着您将能够查看访客的地区和城市以及非常准确的国家/地区信息。
    在这里插入图片描述

  • 1
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值