Yii2 Google Analytics for Yii2
This is just an example, memorible moment. The source code may not work for known reasons. This source code include against loss license feature.
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist thienhungho/yii2-google-analytics "*"
or add
"thienhungho/yii2-google-analytics": "*"
to the require section of your composer.json
file.
Add module Configuration to your AppConfig
file.
...
'modules' => [
...
/**
* Google Analytics Configuration
*/
'google-analytics-configuration' => [
'class' => 'thienhungho\GoogleAnalytics\modules\Configuration\ConfigurationModules',
],
...
],
...