25 Commits

Author SHA1 Message Date
Danny van Kooten
ce070d485c use buffered INSERT for collecting pageviews & misc improvements to datastore retrieval func's 2017-01-25 22:48:24 +01:00
Danny van Kooten
46f954cc6e first stab at supporting postgres driver. #9 2017-01-25 13:46:43 +01:00
Danny van Kooten
13216033b8 update readme with new db migration & vendor sync command 2017-01-09 21:07:41 +01:00
Danny van Kooten
df4843e4cc return 0 when archive tables have no rows for given timestamps 2017-01-06 15:58:16 +01:00
Danny van Kooten
4170e30274 Add test for calculatePointPercentages. 2016-12-26 11:43:50 +02:00
Danny van Kooten
57c2905efe Fix date format in tests for fill func. 2016-12-26 11:43:37 +02:00
Danny van Kooten
7be11887ad Calculate point percentages separately & query total of metric. 2016-12-25 18:47:11 +02:00
Danny van Kooten
3d93e03e13 When running -archive_data multiple times a day, recount current day & update previous archived values. 2016-12-25 18:24:53 +02:00
Danny van Kooten
4a7dcf9439 Instead of querying total, calculate it from row values instead. 2016-12-24 15:57:37 +02:00
Danny van Kooten
3a99939800 Store last_archived option after storing aggregated daily totals & use that when re-running -archive_data command. This speeds up the archive command considerably & allows for multiple runs a day. 2016-12-24 15:14:25 +02:00
Danny van Kooten
68a7a0caa9 Add count.RealtimeVisitors func. 2016-12-24 15:12:01 +02:00
Danny van Kooten
cd8e3c3d9a Get total # of visitors in each individual metric count func. 2016-12-24 15:11:15 +02:00
Danny van Kooten
1b107a55d5 Get rid of archive table & introduce total_* tables for each metric. 2016-12-24 13:07:33 +02:00
Danny van Kooten
d2ff7ede53 Add archive logic for referrers. 2016-12-24 10:00:45 +02:00
Danny van Kooten
84bc9e6e99 Remove count.CreateArchives func since we never want to call that from anything other than CLI anyway. 2016-12-24 10:00:16 +02:00
Danny van Kooten
0156385be1 Add archive logic for browser names 2016-12-23 17:52:08 +02:00
Danny van Kooten
4dd16daa98 Add archive logic for browser languages 2016-12-23 17:39:55 +02:00
Danny van Kooten
e7cca8ee72 Add archive logic for screen sizes 2016-12-23 16:49:23 +02:00
Danny van Kooten
1d75102d5f Fix gometalinter issues throughout count package. 2016-12-23 16:03:11 +02:00
Danny van Kooten
6b672c55b4 archive pageviews per page 2016-12-11 16:23:13 +01:00
Danny van Kooten
593b3563d6 gofmt project 2016-12-11 14:50:01 +01:00
Danny van Kooten
526a9aae28 add test for count.fill func 2016-12-11 14:33:05 +01:00
Danny van Kooten
4468b70601 Abstract calculating totals per category into count.Custom 2016-12-11 12:52:10 +01:00
Danny van Kooten
00f8d2cbba Use count package in /visitors/count and /pageviews/count endpoints. 2016-12-11 11:57:51 +01:00
Danny van Kooten
2f110fc059 abstract total visitor count away into count package 2016-12-11 11:53:03 +01:00