Commit 1a3ecccf6bb5a2051a29cef553383ec8dfded137

Authored by Alex Savenko
1 parent ecfeb9c4

ga tests

Showing 1 changed file with 3 additions and 2 deletions   Show diff stats
frontend/views/articles/show.php
... ... @@ -10,8 +10,9 @@ $this->title = $news->meta_title;
10 10 $this->params['seo']['title'] = !empty($this->title) ?$this->title :$news->title;
11 11 $this->registerMetaTag(['name' => 'description', 'content' => $news->meta_description]);
12 12 $this->registerJs("
13   - _gaq.push(['_setCustomVar',2,'Author','".$author."',3]);
14   - _gaq(['_trackPageview']);
  13 +
  14 + ga('set', 'author', '".$author."');
  15 + ga('send', 'pageview');
15 16 ", View::POS_END);
16 17 ?>
17 18  
... ...