2017 © Pedro Peláez
 

library yii2-analytics

Yii2 bindings for lucidtaz/analytics

image

lucidtaz/yii2-analytics

Yii2 bindings for lucidtaz/analytics

  • Wednesday, September 14, 2016
  • by LucidTaZ
  • Repository
  • 1 Watchers
  • 0 Stars
  • 9 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Yii2 Analytics

Yii2 bindings for LucidTaZ/Analytics., (*1)

USAGE

Include the package using Composer:, (*2)

composer require "lucidtaz/yii2-analytics"

Then configure web.php and console.php to include the module:, (*3)

$config = [
    ...
    'bootstrap' => ['analytics'],
    'modules' => [
        'analytics' => [
            'class' => 'lucidtaz\analytics\yii2\Module',
            'db' => /* optional db specification */,
        ],
        ...
    ],
    ...
];

Create the tables, during installation, by running the migration:, (*4)

php yii migrate --migrationPath=@vendor/lucidtaz/yii2-analytics/src/migrations

FUNCTIONALITY

To easily track all pageviews of a Controller, use the PageviewBehavior:, (*5)

public function behaviors()
{
    return [
        'pageview' => [
            'class' => 'lucidtaz\analytics\yii2\behaviors\PageviewBehavior',
        ],
    ];
}

The Versions

14/09 2016

dev-master

9999999-dev

Yii2 bindings for lucidtaz/analytics

  Sources   Download

MIT

The Requires

 

The Development Requires

by Thijs Zumbrink