Is there anyway to record total visiting counts? with self-host

It looks like if we publish the project on playcanvas there will be visiting number automatically, but if we self host it? how can we archieve this?

Do you need the number available to the public?

If so, you need something like a ‘hit counter’. If not, look for an analytics platform/plugin like Google Analytics.