PHP code example of andrewdanilov / yii2-yandex-metrika
1. Go to this page and download the library: Download andrewdanilov/yii2-yandex-metrika library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
andrewdanilov / yii2-yandex-metrika example snippets
<?= \andrewdanilov\yandexmetrika\YandexMetrika::widget([
'id' => 123456789,
'clickmap' => false, // default true
'trackLinks' => false, // default true
'accurateTrackBounce' => false, // default true
'webvisor' => false, // default true
])