porshkevich / yii2-google-analytics
Google Analytics extension for the Yii2 framework
Installs: 16
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 1
Open Issues: 0
Type:yii2-extension
Requires
- yiisoft/yii2: *
This package is not auto-updated.
Last update: 2025-01-18 19:08:53 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', ]