thienhungho/yii2-google-analytics

Yii2 Google Analytics

v1.0.3 2019-04-28 09:37 UTC

This package is auto-updated.

Last update: 2024-04-30 00:39:04 UTC


README

Yii2 Google Analytics for Yii2

Installation

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.

Config

Add module Configuration to your AppConfig file.

...
'modules'          => [
    ...
    /**
     * Google Analytics Configuration
     */
     'google-analytics-configuration' => [
        'class' => 'thienhungho\GoogleAnalytics\modules\Configuration\ConfigurationModules',
     ],
    ...
],
...

Migration

Modules

ScriptConfigurations

Functions

Core

Constant

Core

Models

GoogleAnalytics