andrewdanilov/yii2-yandex-metrika
Composer 安装命令:
composer require andrewdanilov/yii2-yandex-metrika
包简介
Widget places yandex metrika counter
README 文档
README
Widget places yandex metrika counter
Installation
The preferred way to install this extension is through composer.
Either run
composer require andrewdanilov/yii2-yandex-metrika "~1.1.0"
or add
"andrewdanilov/yii2-yandex-metrika": "~1.1.0"
to the require section of your composer.json file.
Usage
<?= \andrewdanilov\yandexmetrika\YandexMetrika::widget([ 'id' => 123456789, 'clickmap' => false, // default true 'trackLinks' => false, // default true 'accurateTrackBounce' => false, // default true 'webvisor' => false, // default true ]) ?>
If YII_ENV global constant is equal to 'dev' or widget param id is not set, then counter will be disabled and counter code will not be displayed.
统计信息
- 总下载量: 51
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-04-17