truckerswelcome / webapp

Web application components (UI and backend)
MIT License
2 stars 2 forks source link

Add ability to get search statistics #51

Closed domcho closed 4 years ago

domcho commented 4 years ago

Being able to determine what searches are being performed and the number of results returned can be used to measure site usage and usefulness. The following table is now updated on every search:

id bigint(20) //entry if searchtime timestamp // the time of the search ip varchar(40) // the IP address of the endpoint lat float(10,6) // the latitude of the search location lng float(10,6) // the longitude of the search location searchstring varchar(256) // what the user typed in the search box query varchar(1024) // the db query issued to perform the search numentries int(11) // the number of locations returned

Next step is to implement the report

domcho commented 4 years ago

Added stats to page generated by goaccess