supplyhog / yii2-universal-analytics
There is no license information available for the latest version (dev-master) of this package.
dev-master
2016-01-08 16:42 UTC
Requires
- php: >=5.4.0
- yiisoft/yii2: *
This package is not auto-updated.
Last update: 2024-11-05 04:40:32 UTC
README
#Yii2-universal-analytics
Forked from TagPlanet/yii-analytics-ua. Modified to work with Yii2 Framework.
##Installation Install this extension via composer. Add this line to your project’s composer.json
supplyhog/yii2-universal-analytics” : “dev-master”
##Setup
###Configuration
//add this line in config/main-local.php for the appropriate application $config[‘components’][] = [ ‘googleAnalytics’ => [ ‘class’ => supplyhog\AnalyticsUA\UniversalAnalytics’ ] ]
###Usage
//Within your layout Yii::$app->googleAnalytics->render();
For additional configuration options see TagPlanet/yii-analytics-ua.