zazama / matomo
用于包含跟踪代码的Silverstripe Matomo模块
2.0.0
2020-07-20 15:22 UTC
Requires
This package is auto-updated.
Last update: 2024-09-21 00:34:33 UTC
README
需求
- Silverstripe 4
对于Silverstripe 3,切换到分支1
安装
composer require zazama/matomo ^2.0
使用方法
此模块提供了多种选项,您可以在_config.yml文件中使用这些选项
基本配置
Zazama\Matomo\Extensions\MatomoExtension: # Root URL of your Matomo instance server_url: 'https://example.com/' # Site ID of the page you want to track site_id: 1337
所有设置
Zazama\Matomo\Extensions\MatomoExtension: # Root URL of your Matomo instance server_url: 'https://example.com/' # Site ID of the page you want to track site_id: 1337 # Path of the tracker php file, default: matomo.php tracker_path: 'matomo.php' # Path of the tracker php file, default: matomo.js script_path: 'matomo.js' # Inserted on dev mode, default: false show_on_dev: false # Automatically insert script, default: true insert_tracking_code: true # Enable link tracking (e.g. PWA), default: false enable_link_tracking: false # Track all content impressions, default: false track_all_content_impressions: false # Track visible content impressions, default: false track_visible_content_impressions: false # Disable cookies (GDPR compliance), default: false disable_cookies: false # Set document title by javascript, default: document.title document_title_js: 'document.title'