定制 floriankarsten/kirby-plausible 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

floriankarsten/kirby-plausible

最新稳定版本:0.3.0

Composer 安装命令:

composer require floriankarsten/kirby-plausible

包简介

README 文档

README

Simple plugin providing Plausible iframe panel view to Kirby panel and frontend snippet.

CleanShot 2021-11-04 at 17 53 43

Installation

composer require floriankarsten/kirby-plausible or download from releases

How to use

  1. Create a shared link https://plausible.io/docs/shared-links
  2. Set floriankarsten.plausible.sharedLink in config.php
    // config/config.php
    'floriankarsten.plausible' => [
        // Required
        'sharedLink' => 'https://plausible.io/share/yourwebsiteurl.com?auth=Jz0mCWTPu5opXi0sAgRrq',
        // Optional: The value that will be set in data-domain attribute of <script> tag.
        'domain' => 'test.com', // Defaults to $site->url()
        // Optional: To use a self-hosted Plausible instance
        // 'scriptHost' => 'https://plausible.example.com',
        // Optional: To use Plausible script extensions
        // 'scriptName' => 'plausible.outbound-links.exclusions'
    ];
  3. Add the following snippet inside your site's <head> tag. Note that this will not generate any output for logged in users or when Kirby is in debug mode.
    <?php snippet('plausible'); ?>

This plugin wouldn't happen without @garethworld who kindly hired me to make it and then wanted to have it released to Kirby community. Yaaaaay

统计信息

  • 总下载量: 4.05k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 25
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 25
  • Watchers: 3
  • Forks: 6
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-04-20