porshkevich/yii2-google-analytics

Google Analytics extension for the Yii2 framework

1.0.0-alpha 2015-03-05 17:53 UTC

This package is not auto-updated.

Last update: 2024-05-11 14:59:18 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',
]