I found that click pages will not send a http://domain/page_name request to the server but works like single page application and change url by js. This makes impossible logging access by nginx.
So how can I find which page is the most popular?
How can I log page access instead of put logging.info("page_name is accessed") at every page script file in pages folder?
I suspect there might be a way to plug into the internal streamlit event system, but I also suspect that adding a logging.info line like you suggest would be far easier.