From 1a3ecccf6bb5a2051a29cef553383ec8dfded137 Mon Sep 17 00:00:00 2001 From: Alex Date: Mon, 13 Feb 2017 19:27:15 +0200 Subject: [PATCH] ga tests --- frontend/views/articles/show.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/frontend/views/articles/show.php b/frontend/views/articles/show.php index ba87d72..c2f9274 100755 --- a/frontend/views/articles/show.php +++ b/frontend/views/articles/show.php @@ -10,8 +10,9 @@ $this->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]); - _gaq(['_trackPageview']); + + ga('set', 'author', '".$author."'); + ga('send', 'pageview'); ", View::POS_END); ?> -- libgit2 0.21.4