2017 © Pedro Peláez
 

yii2-extension yii2-hotjar

Google Analytics extension for the Yii2 framework

image

thiagotalma/yii2-hotjar

Google Analytics extension for the Yii2 framework

  • Thursday, June 23, 2016
  • by thiagotalma
  • Repository
  • 1 Watchers
  • 0 Stars
  • 5,453 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 9 Forks
  • 0 Open issues
  • 3 Versions
  • 12 % Grown

The README.md

Hotjar for Yii2

This extension provides easy way to add Hotjar tracking in your Yii2 application., (*1)

Based on https://github.com/cybercog/yii2-google-analytics, (*2)

Installation

The preferred way to install this extension is through composer., (*3)

Either run, (*4)

$ php composer.phar require thiagotalma/yii2-hotjar "*

or add, (*5)

"thiagotalma/yii2-hotjar": "*"

to the require section of your composer.json file., (*6)

Usage

In your /views/layouts/main.php add, (*7)

use talma\hotjar\widgets\HotjarTracking;

Then before </head> add following code, (*8)

<?= HotjarTracking::widget(
    [
        'trackingId' => 'XXXXXXXX'
    ]
) ?>

Advanced usage

If you need the output without script tag to combined with registerJs or registerJsFile as renderPartial to add dependency or positioning configuration, you can use omitScriptTag true to disable script tag, example:, (*9)

<?= $this->registerJs(
    HotjarTracking::widget([
        'trackingId' => 'XXXXXXXX',
        'omitScriptTag' => true
    ]), \yii\web\View::POS_END
); ?>

The Versions

23/06 2016

dev-patch-1

dev-patch-1

Google Analytics extension for the Yii2 framework

  Sources   Download

BSD-3-Clause

The Requires

 

analytics yii2 google

30/05 2016

dev-master

9999999-dev

Hotjar extension for the Yii2 framework

  Sources   Download

BSD-3-Clause

The Requires

 

yii2 hotjar

30/05 2016

v0.1

0.1.0.0

Hotjar extension for the Yii2 framework

  Sources   Download

BSD-3-Clause

The Requires

 

yii2 hotjar