定制 mhe/silverstripe-matomo 二次开发

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

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

mhe/silverstripe-matomo

最新稳定版本:v2.0.0

Composer 安装命令:

composer require mhe/silverstripe-matomo

包简介

Silverstripe module to include Matomo analytics tool

README 文档

README

Add support for Matomo analytics tool to a Silverstripe installation.

  • The specific setup is done via SiteConfig
  • logged in backend users are excluded from tracking (configurable)
  • insert opt-out code into template or simply into page content via shortcode
  • opt-out supports inlined form/JavaScript (default) or Matomo-standard iframe

Requirements

Requires Silverstripe 6.x – for a version compatible with Silverstripe 5 see respective branch 5

Configuration

Options in CMS Settings (SiteConfig, Tab Matomo):

  • Activate tracking
  • Tracking URL (URL of Matomo installation)
  • Site ID

Developer configuration (YAML)

  • Mhe\Matomo\Extensions\MatomoConfig.track_cms_users: Track CMS users (with permission CMS_ACCESS_CMSMain) (default: false)
  • Mhe\Matomo\Extensions\MatomoConfig.auto_add_tracking_head: add the tracking code to HTML head part – no modifications of the page template(s) needed (default: true)
  • Mhe\Matomo\Extensions\MatomoConfig.optout: configuration of opt-out code, array with sub properties:
    • method, either 'script' (default) or 'iframe'

Customizable templates

  • MatomoOptOutIframe
  • MatomoOptOutScript
  • MatomoTrackingCodeBody
  • MatomoTrackingCodeHead

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2025-11-12