New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

sitawit/yii2-piwik

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sitawit/yii2-piwik

The Piwiki plugin for Yii 2 framework

yii2-extension
Source
Packagist
Version
0.0.1
Version published
Total downloads
2.8K
Maintainers
1
Created
Source

Piwik Extension for Yii 2

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'
        ],
        ...
    ],
    ...
];

FAQs

Package last updated on 22 Feb 2016

Related posts