PHP code example of sitawit / yii2-piwik
1. Go to this page and download the library: Download sitawit/yii2-piwik library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
sitawit / yii2-piwik example snippets
return [
'bootstrap' => [
...
'piwik',
...
],
...
'components' => [
...
'piwik' => [
'class' => 'sitawit\piwik\Piwik',
'trackerUrl' => 'tracker-url',
'siteId' => 'id-of-website'
],
...
],
...
];
php composer.phar