ADD цели для метрики
This commit is contained in:
parent
2fe170c341
commit
00a808c5dd
|
|
@ -91,6 +91,7 @@ class JsonController extends Controller
|
|||
$point->photosCount = $photosCount;
|
||||
$point->inFavorites = Favorite::model()->checkIsMy($id);
|
||||
$point->iLike = Like::model()->checkIsMy($id);
|
||||
$point->isPaid = in_array($point->categoryId, Category::$paidIds);
|
||||
|
||||
self::renderPartial('json.php', $point->getValues());
|
||||
} else {
|
||||
|
|
|
|||
|
|
@ -382,6 +382,12 @@ function drawInfoPopup(id, showPopup, doNotPushToHistory) {
|
|||
}
|
||||
}, 200);
|
||||
|
||||
yaCounter24682772.reachGoal('VIEW_POINT');
|
||||
|
||||
if (data.isPaid == true) {
|
||||
yaCounter24682772.reachGoal('VIEW_PAID_POINT');
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -296,4 +296,10 @@ if ($pointsAirport && $usersAirport && $pointsAirport->id != $usersAirport->id){
|
|||
$('.extraHolder').hide();
|
||||
$('.extraData').show();
|
||||
}
|
||||
|
||||
<?php if (in_array($point->categoryId, Category::$paidIds)): ?>
|
||||
$(document).ready(function(){
|
||||
yaCounter24682772.reachGoal('VIEW_PAID_POINT');
|
||||
})
|
||||
<?php endif; ?>
|
||||
</script>
|
||||
|
|
|
|||
Loading…
Reference in New Issue