Commit Graph

38 Commits

Author SHA1 Message Date
Danny van Kooten e92b4b9a29 clean-up route & func names 2018-11-14 11:47:47 +01:00
Danny van Kooten 2ca1e0f36e switch to hourly storage for stats.
- allows showing an hourly chart on the 'today' view
- fixes timezone issues when in 'today' view #134
- increases size of stats tables by factor 24, but that should be less of an issue after dbcadcd737
2018-11-13 15:23:18 +01:00
Danny van Kooten dbcadcd737 normalize hostname and pathname columns
to save on disk storage
2018-11-12 14:45:21 +01:00
Danny van Kooten 3c934b29fc add is_finished column indicating whether a pageview is done (ready to be aggregated). closes #123 2018-10-10 10:27:55 +02:00
Danny van Kooten d4176de238 get aggregator to take site ID's into account 2018-10-05 14:19:11 +02:00
Danny van Kooten dc8bf7fdc3 modify tracker.js to take a siteId and insert that into pageviews table. add siteId to tracking snippet. 2018-10-05 10:07:00 +02:00
Danny van Kooten 61cc23eb0d fetch sites from server & update dashboard state from site switcher 2018-10-03 11:54:48 +02:00
Danny van Kooten 4b855c6d05 add site related func to sqlstore 2018-10-03 10:44:31 +02:00
Danny van Kooten f0eecc04cd add sites table & site_id columns for multi-site tracking #50 2018-09-25 15:03:07 +02:00
Danny van Kooten 3b721b88a8 sanitize email address before saving to datastore 2018-09-10 09:26:15 +02:00
Danny van Kooten b6aa00caef add tests for aggregating referrer stats 2018-08-09 15:04:38 +02:00
Danny van Kooten 8313c64610 add tests for aggregating page-specific stats 2018-08-09 14:57:35 +02:00
Danny van Kooten 2ccbfbf372 add tests for aggregating site-wide stats 2018-08-09 14:43:42 +02:00
Danny van Kooten 01474759c6 add stats command for getting site-wide stats via cli. 2018-08-01 14:03:44 +02:00
Danny van Kooten 33ffa557ee move setting pwd & comparing into user model + tests 2018-08-01 13:13:42 +02:00
Danny 42008ab83f get rid of session_id and move knowledge of previous pageview to client. this also gets rid of the (only) index on the pageviews table, allowing for much faster INSERT's. closes #14 2018-07-11 15:03:56 +02:00
Danny 7bf8978cb6 use a single http request to fetch all data for left-sidebar 2018-06-04 12:53:17 +02:00
Danny 071ea5ace0 split hostname and pathname in referrers table 2018-05-30 12:50:28 +02:00
Danny df7496a80d add known_durations column and use that for calculating duration averages, instead of total # pageviews 2018-05-28 15:31:40 +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 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 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 95cd0e4053 implement referrers table 2018-05-07 19:33: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 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 94b5a03d8e refactor part of count package to datastore, needs more work for other metrics besides pageviews 2018-04-26 20:40:00 +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 2ac0abd02e move SaveUser func to datastore package and make it db driver agnostic 2018-04-25 13:25:34 +02:00
Danny 93b285c0a9 change project directory structure to clean-up root dir 2018-04-20 13:12:23 +02:00