devgroup / yii2-intent-analytics
Visitors intent analytics and integration with Google Analytics and Yandex.Metrika for Yii framework 2
Installs: 507
Dependents: 1
Suggesters: 0
Security: 0
Stars: 3
Watchers: 17
Forks: 3
Type:yii2-extension
Requires
- devgroup/yii2-tag-dependency-helper: ~1.5
- yiisoft/yii2: ^2.0.6
Requires (Dev)
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
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', // ], // ], ], ...