Commit Graph

292 Commits

Author SHA1 Message Date
Danny 3e22efc5f7 when getting stats for a given period; date should larger than start date, but not equal 2018-05-09 08:36:29 +02:00
Danny 8ed076dd02 use correct groupby parameter for aggregated stats 2018-05-09 08:34:58 +02:00
Danny 624e1f353a fix json tag in models struct 2018-05-09 08:34:48 +02:00
Danny van Kooten a8edcee54e store avg time on site as float to not race to 0 2018-05-08 20:16:31 +02:00
Danny van Kooten 27e1d5d368 set packr box dir dynamically to ensure all drivers are packrd 2018-05-08 18:49:56 +02:00
Danny 3493bb1e9e default to actual driver name instead of alias 2018-05-08 16:21:22 +02:00
Danny 60cca7d40f add support for postgres too. closes #9 2018-05-08 15:41:48 +02:00
Danny 449c6745bb make sure assets are built before running packr 2018-05-08 15:29:33 +02:00
Danny 2c5bec72fb Update development installation instructions 2018-05-08 15:01:21 +02:00
Danny 0683cac2bf use packr to embed migration files & web assets into binary. closes #8 2018-05-08 14:57:08 +02:00
Danny 61753a713c delete unused img files for country flags 2018-05-08 14:52:03 +02:00
Danny b4c7de0880 store hostname for each pageview & page stat 2018-05-08 13:21:36 +02:00
Danny 5fe5b97e94 use realtime poll to catch expired/invalid login sessions 2018-05-08 13:21:14 +02:00
Danny b8ceff621d store hostname so we can track multiple subdomains in one fathom instance, if needed 2018-05-08 13:08:16 +02:00
Danny 02bcfbf503 generate default value for secret so that fathom can run using only default values 2018-05-08 12:45:24 +02:00
Danny 2ceaaeb9f5 add support for sqlite. #9 2018-05-08 12:31:51 +02:00
Danny 0a0476b5ae store accurate new session count & use that to determine bounce rate 2018-05-08 11:52:01 +02:00
Danny fe7eee2b73 clean-up data structure & add indices 2018-05-08 10:45:17 +02:00
Danny van Kooten ca3d258174 fix params test 2018-05-08 09:11:32 +02:00
Danny van Kooten 8e99bc5896 add test for GetRequestParams 2018-05-08 08:22:21 +02:00
Danny van Kooten 5e0ac22fe4 and finally, delete pageviews after processing to keep pageviews table nice & small 2018-05-07 19:45:42 +02:00
Danny van Kooten 95cd0e4053 implement referrers table 2018-05-07 19:33:52 +02:00
Danny van Kooten 9a9ea1687c imment referrer stats api route 2018-05-07 19:20:58 +02:00
Danny van Kooten fb259a53a1 remove unused pkg from vendor dir 2018-05-07 19:20:47 +02:00
Danny van Kooten 872bdd6141 define struct for all api params 2018-05-07 18:59:52 +02:00
Danny 7597de951b add NOTES.md file for quick notes idk where to put otherwise 2018-05-07 17:07:30 +02:00
Danny dac50c3da9 start cleaning up & implement page stats again 2018-05-07 17:01:20 +02:00
Danny 433c6e2f4d get general data flow up & running again for site stats 2018-05-07 16:05:53 +02:00
Danny van Kooten 082073afb8 [wip] move bulk of storage to client-side for improved scalability, simplicity and privacy. see #14. 2018-05-06 11:53:19 +02:00
Danny 5a403d536a first stab at time on site tracking. #20 2018-05-04 15:43:05 +02:00
Danny 86e5a7a957 simple bounce rate implementation. #21 2018-05-04 12:20:37 +02:00
Danny 5f626f1143 use simple loading class to indicate loading state. 2018-05-04 11:05:55 +02:00
Danny f2258acafb add querystring to url's in table component 2018-05-04 10:42:43 +02:00
Danny van Kooten 760780f07b use limit from request when getting pageviews 2018-05-03 21:01:51 +02:00
Danny van Kooten 11775e063b minor js clean-up 2018-05-03 10:54:22 +02:00
Danny van Kooten 9d291f3e49 add <meta> tags in html head, set mobile viewport 2018-05-03 09:20:37 +02:00
Danny van Kooten 956dd539c8 fix path parsing to not include hostname when using https. closes #22 2018-05-03 08:40:15 +02:00
Danny van Kooten c47fc3d893 only output notification HTML if there is one 2018-05-02 17:10:59 +02:00
Danny van Kooten 68d52a15f7 add simple styles for login page, use normalize.css 2018-05-02 17:03:18 +02:00
Danny d76cb6f24d stop storing ip address & browser version details. 2018-05-02 15:33:01 +02:00
Danny 47d8347ef1 universal handling of retrieving totals from datastore, incl. uniques. 2018-05-02 14:52:52 +02:00
Danny van Kooten 50556c44e9 prepare json data for new components, use fallback values in components 2018-05-01 20:02:05 +02:00
Danny van Kooten 0a9ef8d4f6 move before & after calculation to datepicker component 2018-05-01 19:45:52 +02:00
Danny 399c486209 pass period to table component 2018-05-01 16:10:39 +02:00
Danny 8137f10fbc first stab at new design, needs work 2018-05-01 16:06:17 +02:00
Danny c238a2abc3 use COALESCE instead of IFNULL, get rid of backticks. First steps towards Postgres compliance 2018-04-30 16:11:47 +02:00
Danny ba6a86cae0 account for empty record sets in js components 2018-04-30 16:11:20 +02:00
Danny van Kooten ac15507023 stop exporting DB instance in datastore pkg. yay 2018-04-27 17:32:16 +02:00
Danny van Kooten a20e2b1227 move remaining queries to datastore pkg & bubble up errors to http handlers 2018-04-27 17:28:03 +02:00
Danny van Kooten b0d16b648b move remainder of aggregation funcs from count pkg to datastore pkg 2018-04-27 16:25:01 +02:00