sitawit/yii2-piwik

The Piwiki plugin for Yii 2 framework

Installs: 2 779

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

Type:yii2-extension

0.0.1 2016-02-22 07:03 UTC

This package is auto-updated.

Last update: 2024-09-12 15:30:59 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'
        ],
        ...
    ],
    ...
];