notshi / d-preview

Generate a private d-preview site with IATI xml.
http://d-preview.codeforiati.org
1 stars 0 forks source link

Add stats #9

Closed stevieflow closed 3 years ago

stevieflow commented 3 years ago

Add a page to monitor usage - like: https://iati.cove.opendataservices.coop/stats/

Importantly, this should NOT provide any access to the underlying previews

notshi commented 3 years ago

Hi, @stevieflow just letting you know we are currently working on this and it will take a few days.

notshi commented 3 years ago

There should be some stats here now https://notshi.github.io/d-preview/

stevieflow commented 3 years ago

Really interesting - thanks!

I'm guessing these will continue to accumulate, over time - and then segment by month, or something (shall we just watch this space..?)

Also - would we want / be able to put these at d-preview.codeforiati.org/stats ..?

xriss commented 3 years ago

It is dumping out a json file and building that page direct from the data.

Just take a look at the source for the html and it should be reasonably obvious what is going on with the display generated from daily values using a bit of simple javascript.

You can easily arrange and republish the data any where you want, you can either get it from that url using github pages or from the stats branch of the github code.

https://github.com/notshi/d-preview/tree/stats

notshi commented 3 years ago

Have added nightly stats similar to the table for CoVE.

stevieflow commented 3 years ago

@notshi - thanks

Would it be possible to put a link to the stats https://notshi.github.io/d-preview/ from the d-preview "homepage"? That way, I wont have to navigate back to this ticket each time ;)

notshi commented 3 years ago

Yes, of course! The link should now be on the homepage.