Commit 3bcd471e072499d0b35341459b4d3027e73ca6a8

Authored by Alex Savenko
1 parent 82315623

ga tests

Showing 1 changed file with 5 additions and 2 deletions   Show diff stats
frontend/views/articles/show.php
1 1 <?php
2 2 use common\modules\comment\widgets\CommentWidget;
3 3 use yii\helpers\Html;
4   -use yii\widgets\Breadcrumbs;
  4 + use yii\widgets\Breadcrumbs;
  5 + use yii\web\View;
5 6 ?>
6 7 <?php
7 8  
8 9 $this->title = $news->meta_title;
9 10 $this->params['seo']['title'] = !empty($this->title) ?$this->title :$news->title;
10 11 $this->registerMetaTag(['name' => 'description', 'content' => $news->meta_description]);
11   -
  12 +$this->registerJs("
  13 + _gaq.push(['_setCustomVar',2,'Author','".$author."',3]);
  14 +", View::POS_HEAD);
12 15 ?>
13 16  
14 17 <nav class="bread-crumbs">
... ...