Commit 3bcd471e072499d0b35341459b4d3027e73ca6a8
1 parent
82315623
ga tests
Showing
1 changed file
with
5 additions
and
2 deletions
Show diff stats
frontend/views/articles/show.php
1 | <?php | 1 | <?php |
2 | use common\modules\comment\widgets\CommentWidget; | 2 | use common\modules\comment\widgets\CommentWidget; |
3 | use yii\helpers\Html; | 3 | use yii\helpers\Html; |
4 | -use yii\widgets\Breadcrumbs; | 4 | + use yii\widgets\Breadcrumbs; |
5 | + use yii\web\View; | ||
5 | ?> | 6 | ?> |
6 | <?php | 7 | <?php |
7 | 8 | ||
8 | $this->title = $news->meta_title; | 9 | $this->title = $news->meta_title; |
9 | $this->params['seo']['title'] = !empty($this->title) ?$this->title :$news->title; | 10 | $this->params['seo']['title'] = !empty($this->title) ?$this->title :$news->title; |
10 | $this->registerMetaTag(['name' => 'description', 'content' => $news->meta_description]); | 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 | <nav class="bread-crumbs"> | 17 | <nav class="bread-crumbs"> |