From 3bcd471e072499d0b35341459b4d3027e73ca6a8 Mon Sep 17 00:00:00 2001 From: Alex Date: Mon, 13 Feb 2017 18:34:25 +0200 Subject: [PATCH] ga tests --- frontend/views/articles/show.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/frontend/views/articles/show.php b/frontend/views/articles/show.php index 7f26270..360b16c 100755 --- a/frontend/views/articles/show.php +++ b/frontend/views/articles/show.php @@ -1,14 +1,17 @@ title = $news->meta_title; $this->params['seo']['title'] = !empty($this->title) ?$this->title :$news->title; $this->registerMetaTag(['name' => 'description', 'content' => $news->meta_description]); - +$this->registerJs(" + _gaq.push(['_setCustomVar',2,'Author','".$author."',3]); +", View::POS_HEAD); ?>