24 Commits

Author SHA1 Message Date
Danny
0683cac2bf use packr to embed migration files & web assets into binary. closes #8 2018-05-08 14:57:08 +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
0a0476b5ae store accurate new session count & use that to determine bounce rate 2018-05-08 11:52:01 +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
9a9ea1687c imment referrer stats api route 2018-05-07 19:20:58 +02:00
Danny van Kooten
872bdd6141 define struct for all api params 2018-05-07 18:59:52 +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 van Kooten
760780f07b use limit from request when getting pageviews 2018-05-03 21:01:51 +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
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
Danny van Kooten
80254ee4ee move pageview queries to datastore pkg & rebind query for other db engines than mysql 2018-04-26 19:30:15 +02:00
Danny
6f0ed92dfe use sqlx pkg for scanning user queries 2018-04-25 13:45:21 +02:00
Danny
2ac0abd02e move SaveUser func to datastore package and make it db driver agnostic 2018-04-25 13:25:34 +02:00
Danny
32f4299656 use envconfig to validate configuration values & handle default values 2018-04-25 13:05:29 +02:00
Danny
b3ee15cc9a universal error handling in api pkg by returning errs from http handlers 2018-04-25 11:59:30 +02:00
Danny
4faf4f9498 rename all go import paths to new repository location 2018-04-24 10:28:23 +02:00
Danny
93b285c0a9 change project directory structure to clean-up root dir 2018-04-20 13:12:23 +02:00