porshkevich / yii2-google-analytics
Google Analytics extension for the Yii2 framework
Package info
github.com/porshkevich/yii2-google-analytics
Type:yii2-extension
pkg:composer/porshkevich/yii2-google-analytics
1.0.0-alpha
2015-03-05 17:53 UTC
Requires
- yiisoft/yii2: *
This package is not auto-updated.
Last update: 2026-03-01 01:35:30 UTC
README
Google Analytics extension for the Yii2 framework
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist porshkevich/yii2-google-analytics "*"
or add
"porshkevich/yii2-google-analytics": "*"
to the require section of your composer.json file.
Usage
Once the extension is installed, simply use it in your code by :
'ga'=>[ 'class'=>'porshkevich\googleanalytics\GoogleAnalyticsAPI', 'defaultTrackingId' => 'UA-XXXXXXXX-X', ]