walkasjesus / walkasjesus_framework

This is the Jesus Commandments Application which is build in a Python Framework
GNU General Public License v3.0
1 stars 0 forks source link

Reporting of stats for bible translations #71

Closed walkasjesus closed 3 years ago

walkasjesus commented 5 years ago

Since we (Jesus Commandments website) are now an official Library Card Holder from the Digital Bible Library, we need to apply all kinds requirements. One of the requirements is:

Reporting of Stats – Please confirm the ability of Stats Report submission with relevant usage stats (i.e. page views and unique visitors, and user email addresses) for each Scripture text/content under licensing. Reports should be sent to the IPC every four months.

This requirement is not as easy as its sound, because currently I cannot get this information from the webserver logs. @Ikbengeenrobot or @guidogast , does one of you have any idea how to get those statistics?

Ikbengeenrobot commented 5 years ago

I am wondering, I cannot imagine the GDRP allows us to disclose user email addresses. Unique visitors and page count should be less of a problem. Unique visitors (assuming unique ips for simplicity) and page views should not be too hard I assume? How do you need to report this info? Could we make a script to parse the logs and generate a monthly report?

walkasjesus commented 5 years ago

Email addresses is an example, so I don't think this is necessary. The problem is that the request is about getting the statistics specific about the relevant usage stats for each Scripture text/content under licensing. This means that we should deliver the amount of times People are calling the Bible references, with specific translations. So If I go to the detail/1 page, with a french translation, the website is calling all related Bible references for that french translation. This information is not in the logs, so I cannot parse the logs to report this info. I also asked the api.bible more specific about this. They also have a statistics page where you can see when you called the api.bible. But, they can't see If we show cached results to people, since cached references are not called.

So, would it be an idea to also write an entry to a local logfile when people are entering a webpage with Bible references? By example: Oct 30 05:59:32 1.2.3.4 url: https://www.jesuscommandments.org/detail/1 language: en bible: 06125adad2d5898a-01 (KJV) amount: 12 cached: yes

<date> <ip> url: <url> language: <language> bible: <id> (<abbreviation>) amount: <number of calls> cached: <yes/no>

Is it easy for your to write these logs? Or would it be hard? Or does it slow down the page loading a lot?

walkasjesus commented 3 years ago

We didnt recieved any request for sending stats, so we will close this issue for now