devgroup/yii2-intent-analytics

Visitors intent analytics and integration with Google Analytics and Yandex.Metrika for Yii framework 2

dev-master 2016-12-02 09:32 UTC

This package is auto-updated.

Last update: 2024-10-11 14:36:54 UTC


README

Visitors intent analytics and integration with Google Analytics and Yandex.Metrika for Yii framework 2

Build Status codecov.io

Install

composer require "devgroup/yii2-intent-analytics:*"
./yii migrate --migrationPath=vendor/devgroup/yii2-intent-analytics/src/migrations

Configure your application

Add module:

    'modules' => [
        ...
        'analytics' => [
            'class' => \DevGroup\Analytics\IntentAnalyticsModule::className(),
//            'detectFirstVisitSource' => true,
//            'detectAllVisitsSources' => true,
//            'storeLastActivity' => true,
//            'storeVisitedPages' => true,
//            'visitorCookieName' => 'visitor_id',
//            'visitorCookieTime' => 61516800,
//            'visitorCookieExpireTime' => 3758400,
//            'i18category' => 'IntentAnalyticsModule',
//            'modelMap' => [
//                'Visitor' => [
//                    'class' => 'DevGroup\Analytics\models\Visitor',
//                ],
//            ],
        ],
        ...