pixelopen / kirby-plausible
为 Kirby CMS 添加 plausible.io 统计数据的插件
1.0.1
2023-09-29 15:11 UTC
Requires
- getkirby/cms: ^3.6.0||^4.0.0
- getkirby/composer-installer: ^1.1
This package is auto-updated.
Last update: 2024-09-06 18:09:19 UTC
README
这是一个为 Kirby CMS 添加新的面板区域以管理您的网站活动统计信息的插件。
本插件受到了以下插件的启发: https://github.com/floriankarsten/kirby-plausible
商业用途
此插件免费
安装
下载
下载文件 并将它们放置在 site/plugins/kirby-plausible
内。
Composer
composer require pixelopen/kirby-plausible
Git 子模块
您可以将插件作为 Git 子模块添加。
$ cd your/project/root
$ git submodule add https://github.com/Pixel-Open/kirby-plausible.git site/plugins/kirby-plausible
$ git submodule update --init --recursive
$ git commit -am "Add Kirby plausible plugin"
运行以下命令以更新插件
$ cd your/project/root
$ git submodule foreach git checkout master
$ git submodule foreach git pull
$ git commit -am "Update submodules"
$ git submodule update --init --recursive
选项
您需要在您的 /site/config/config.php
文件中添加 plausible.io 页面的网址,如下所示:
return [ 'pixelopen.plausible' => [ 'plausibleLink' => 'https://#/share/your.website?auth=yourAuthID', ], ];
您可以使用以下行在您的 /site/config/config.php
文件中更改 iframe 的高度(默认 = 2000):
return [ 'pixelopen.plausible' => [ 'height_iframe' => 'iframe_height_value', ], ];