CodeIgniter Forums
How i calculate number of view of page - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forum-5.html)
+--- Forum: General Help (https://forum.codeigniter.com/forum-24.html)
+--- Thread: How i calculate number of view of page (/thread-66001.html)



How i calculate number of view of page - Fallebdi - 08-22-2016

Hello there,

Currently, I am working on a website for sharing stories like small blogs . 

I am trying to know the number of  views in a particular post or story .
Is any plugin or library provide this, or must build by my own code . 

Thanks in advance.


RE: How i calculate number of view of page - miljkap - 08-22-2016

(08-22-2016, 03:11 AM)Fallebdi Wrote: Hello there,

Currently, I am working on a website for sharing stories like small blogs . 

I am trying to know the number of  views in a particular post or story .
Is any plugin or library provide this, or must build by my own code . 

Thanks in advance.


Use Google Analytics, https://developers.google.com/analytics/devguides/collection/analyticsjs/single-page-applications


RE: How i calculate number of view of page - Diederik - 08-22-2016

Google Analytics? Piwik? AWStats?

Or if you want to do it inside Codeigniter than I think you need to build it yourself.


RE: How i calculate number of view of page - ivantcholakov - 08-22-2016

If you want just counters, there is a project about that (pure PHP): https://github.com/defuse/phpcount

Based on it, I've made my platform-specific code, it could be easily adapted for CodeIgniter 3: http://iridadesign.com/starter-public-edition-4/www/playground/page-hits


RE: How i calculate number of view of page - Fallebdi - 08-23-2016

Thanks,
your replies are very helpful.