studiobonito/silverstripe-google-analytics
最新稳定版本:2.0.3
Composer 安装命令:
composer require studiobonito/silverstripe-google-analytics
包简介
Provide basic Google Analytics integration for SilverStripe CMS.
README 文档
README
Overview
Provide basic Google Analytics integration for SilverStripe CMS.
Requirements
- SilverStripe CMS 3.1.2 and newer or 3.2 and newer.
Install
Via Composer
$ composer require studiobonito/silverstripe-google-analytics
Manually
Copy the 'silverstripe-google-analytics' folder to the root of your SilverStripe installation.
Usage
The module provides a global template variable $GoogleAnalytics that can be used to insert the tracking code into any
page template. This global variable uses the tracking ID specified in the CMS in the Setings > Google Analytics tab.
Google suggests placing tracking code in your document <head> as in the example below. However this module leaves that
choice to the developer.
<head> <title>Example.com</title> $GoogleAnalytics </head>
Testing
$ phpunit
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email support@studiobonito.co.uk instead of using the issue tracker.
Credits
License
The BSD-2-Clause License. Please see License File for more information.
统计信息
- 总下载量: 5.53k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-2-Clause
- 更新时间: 2015-03-12