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