[Solved] How To Count Views On Click Of A Button Or Web Page Is There Any Extension
I think , there is no need of any extension. Make a Ajax call on click button or image you are interested. Improved: I supposed you have Site as controller and index as action. then, please keep this code on views/site/index.php . Yii::app()->clientScript->registerScript(‘logo_as_image_script’, ‘$(document).ready(function() { $(“#logo_as_image”).click(function() { $.post(“‘.Yii::app()->createAbsoluteUrl(‘site/index’).'”, { clicked: “1” }, function(data, status) { … Read more