Jacob Evelyn
c461afa679
Change tracker.js Cache-Control header to no-store
...
According to all documentation I can find, `no-store` is the strongest "do not cache" `Cache-Control` header there is, and `no-cache` and `must-revalidate` are strictly weaker and will have no effect when `no-store` is present. Additionally, I cannot find any evidence that these other values are useful for backwards compatibility or older browsers, and `no-store` support appears to be universal. Lastly, webhint.io is specifically telling me that I should not use `must-revalidate`.
2019-10-17 07:50:19 -04:00
Danny van Kooten
23793bde60
log duration for aggregation func
2018-12-24 12:04:29 +01:00
Danny van Kooten
eb2eb726f3
keep running aggregator job until pageview pool is emptied.
2018-12-24 09:41:11 +01:00
Danny van Kooten
02ba5b3793
use explicit route for index.html in case browser adds it. fixes #193
2018-12-10 09:32:38 +01:00
Danny van Kooten
3656fef69d
discard requests to /collect with missing requried query vars
2018-11-26 10:37:52 +01:00
Danny van Kooten
019b7c9743
show pagination arrows in table component which allows paginating the table results. closes #153
2018-11-20 12:11:35 +01:00
Danny van Kooten
e92b4b9a29
clean-up route & func names
2018-11-14 11:47:47 +01:00
Danny van Kooten
5610a0a4f2
Merge branch 'hourly-storage'
2018-11-14 10:04:16 +01:00
Vincent
40ba2e26da
Adding gzip compression for HTTP and Headers for tracker's sec ( #181 )
...
Thanks @ViBiOh!
2018-11-13 15:25:55 +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 dbcadcd73772258f2d2fd781673e559d5ed74dba
2018-11-13 15:23:18 +01:00
Danny van Kooten
bca066b614
improved referrer parsing. match hostname against blacklist using community-maintained blacklist file graciously provided by Matomo ( https://github.com/matomo-org/referrer-spam-blacklist ). closes #170 relates to #154
2018-11-09 10:39:14 +01:00
Danny van Kooten
f92d04a4ba
default value for pageview.IsBounce should be true, not false.
2018-10-10 16:38:29 +02:00
Danny van Kooten
470db5189d
get rid of some column placeholders so we can increase buffer cap #132
2018-10-10 10:50:05 +02: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
266d05019a
return json error when authorization middleware fails
2018-10-09 11:17:13 +02:00
Danny van Kooten
80088570b0
default to site_id 1, even though it may not exist yet
2018-10-05 16:07:15 +02:00
Danny van Kooten
21371e2c30
close site settings when pressing ESC
2018-10-05 15:59:36 +02:00
Danny van Kooten
53c1702d0d
only re-fetch data when needed
2018-10-05 15:13:48 +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
c1367325e6
modify all routes & queries to take a site ID parameter
2018-10-05 13:09:58 +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
3674855200
apply authorize middleware to site endpoints
2018-10-04 13:40:52 +02:00
Danny van Kooten
e51bbe047d
update state after adding, updating or deleting a site
2018-10-04 13:37:46 +02:00
Danny van Kooten
927c50b419
add & delete sites through api
2018-10-03 15:27:36 +02:00
Danny van Kooten
dc78bb45d9
add api routes + handlers for managing sites
2018-10-03 11:07:04 +02:00
Danny van Kooten
5507fbcd92
update test for respond func
2018-09-21 10:50:34 +02:00
Danny van Kooten
734d32082a
client-side error handling structure incl. better error message for invalid login details. #131
2018-09-21 10:45:47 +02:00
Danny van Kooten
d116f1fd70
limit buffer capacity to 99 pageviews, hotfix for #132
2018-09-21 09:30:05 +02:00
Vincent Boutour
e712f0fcdd
Adding /health endpoint and using it in container
2018-09-17 17:20:48 +02:00
Danny van Kooten
221e6394de
assume dashboard is public when there are no users in connected datastore. #117
2018-09-12 09:36:59 +02:00
Danny van Kooten
291d53fcaf
add CountUsers func to sqlstore
2018-09-12 09:11:50 +02:00
Danny van Kooten
b860937107
always clear request context, even for unauthorized requests
2018-09-12 09:07:55 +02:00
Danny van Kooten
3b721b88a8
sanitize email address before saving to datastore
2018-09-10 09:26:15 +02:00
Danny van Kooten
064b5cb038
re-use buffer (to get rid of allocation) & separate inserts vs. updates early on in collect handler.
2018-08-08 09:43:06 +02:00
Danny van Kooten
720fa4a5da
clear gorilla context after request is handled
2018-08-07 08:48:22 +02:00
Danny van Kooten
33ffa557ee
move setting pwd & comparing into user model + tests
2018-08-01 13:13:42 +02:00
Danny van Kooten
2ef550bc27
reduce number of memory allocations in hot path
2018-07-15 10:05:03 +02:00
Danny van Kooten
e6ee4d0a2e
increase buffer size & buffer timeout for collecting pageviews
2018-07-15 07:34:06 +02:00
Danny van Kooten
82e1216bb3
discard http requests coming from browser prerenders. closes #13
2018-07-12 14:06:07 +02:00
Danny van Kooten
f2683d1f0c
buffer insert & updates of pageviews for performance gain under heavy load. closes #24
2018-07-12 13:30:32 +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 van Kooten
9b47ee27ef
parse hostname from client instead of relying on http header. fixes #79
2018-06-28 10:37:02 +02:00
Danny
844c5996ff
set 'Tk: N' header on resources loaded by client. #65
2018-06-13 11:15:18 +02:00
Danny
42cd00b8cd
disregard requests to /collect with DNT header set to '1'.
2018-06-13 10:44:33 +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
c8a6da13e6
TODO comments so we know where to pick up
2018-05-30 13:40:59 +02:00
Danny
32693be2b0
add make dist task && separate assets build from binary build
2018-05-29 14:52:34 +02:00
Danny
7adc5d3bec
wip on chart implementation using d3
2018-05-22 12:23:17 +02:00
Danny
da19c116b7
strip AMP & UTM vars from referrer urls. closes #37
2018-05-22 10:30:35 +02:00
Danny
0039683b74
set header code when sessionstore returns err
2018-05-15 14:20:05 +02:00