javascript - Determine how many times webpage has been accessed -


i wondering if there way determine how many times specific webpage has been accessed on server. if possible, via cpanel, since website made in wordpress, page in question made scratch , uploaded in directory. so, can't rely on plugins (right?) , don't know enough php or javascript communicate web server , store info on it...

your server doing that, called log file. if grep given page , count number of log enteries, have number of vistors viewed page. this, however, inefficient , doesn't "work cpanel".

next, write simple script insert entry database every time visits page. answer queried custom php add cpanel. more effiecient, reinventing wheel.

but, real answer analytics software. there number of products can you:

  • google analytics - google product collects lots of different types of user information, generates powerful reports, , freely available online. has downside of giving data google - if have privacy policy, you'd want call out google analytics tracking you're doing.

  • piwik - can either cloud-hosted, or host yourself. it's free open-source software of google analytics does. you'd own data , data reside on server, there widgets embedded on pages work integrated cpanel. reports not polished looking google analytics, might worth trade-off.


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -