sitawit / yii2-piwik
The Piwiki plugin for Yii 2 framework
Installs: 2 782
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:yii2-extension
Requires
- yiisoft/yii2: *
This package is auto-updated.
Last update: 2024-11-12 15:46:35 UTC
README
This extension adds a javascript tracking of Piwik for Yii framework 2.0.
For license information check the LICENSE-file.
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require sitawit/yii2-piwik *
or add
"sitawit/yii2-piwik": "*"
to the require
section of your composer.json.
Usage & Documentation
Once the extension is installed, simply modify your application configuration as follows:
return [ 'bootstrap' => [ ... 'piwik', ... ], ... 'components' => [ ... 'piwik' => [ 'class' => 'sitawit\piwik\Piwik', 'trackerUrl' => 'tracker-url', 'siteId' => 'id-of-website' ], ... ], ... ];