Commit Graph

44 Commits (e7cd441a4398fbd5319bcd456a6c535bb35a63ee)

Author SHA1 Message Date
Uku Taht d1b703f007
Clickhouse (#63)
* Get stats from clickhosue

* Pull stats from clickhouse

* Use correct Query namespace

* Use Clickhouse in unit tests

* Use Clickhouse in stats controller tests

* Use fixtures for unit tests

* Add Clickhouse to travis

* Use Clickhouse session store for sessions

* Add garbage collection to session store

* Reload session state from Clickhouse on server restart

* Query from sessions table

* Trap exits in event write buffer

* Run hydration without starting the whole app

* Make session length 30 minutes

* Revert changes to fingerprint schema

* Remove clickhouse from fingerprint sessions

* Flush buffers before shutdown

* Use old stats when merging

* Remove old session schema

* Fix tests with CH sessions

* Add has_pageviews? to Stats
7 years ago
Uku Taht 3faec27c82 Fix clickhouse buffer inserts 7 years ago
Uku Taht 5d1dc0d27c
Clickhouse DB (#62)
* WIP

* Get all stats from Clickhouse

* Use https dependency

* Do not namespace db tables in hydrate task

* Update hydration task

* Ingest data to clickhouse

* Double-write to both Clickhouse and Postgres

* Add test setup

* Keep old stats module

* Prepare for live ingestion test
7 years ago
Uku Taht 4163d2a9ba
Authentication updates (#54)
* Use separate cookie for shared link auth

* Remove CSRF protection from login and register pages

* Add AuthorizeStats Plug

* Fix tests
7 years ago
Uku Taht 2b50c6cf2a Use correct headers 7 years ago
Uku Taht d3c770a6da Remove log 7 years ago
Uku Taht d8936888e6 Inspect headers 7 years ago
Uku Taht e14001664c Fix tests 7 years ago
Uku Taht 594b085467
Analytics without using cookies (#44)
* Use fingerprints instead of user_id

* Fix tests
7 years ago
Uku Taht cc5722050a
Show favicons for referrers (#39) 7 years ago
Uku Taht 90a2c67825 Remove debug code 7 years ago
Uku Taht c0f686b3d0 Fix trailing slash in referrer 7 years ago
Uku Taht 36c08b989d Debug bad referrer 7 years ago
Uku Taht 7d5443396f Use fingerprint 7 years ago
Uku Taht aaa9c67e47
Add fingerprint sessions (#36) 7 years ago
Uku Taht 5495e53454
Backfill fingerprints for returning users (#33) 7 years ago
Uku Taht ed3110a6ea
Introduce initial referrer and initial referrer source (#32)
* Introduce initial referrer and initial referrer source

* Add test
7 years ago
Uku Taht 7bb5d98956 Remove raw fingerprint 7 years ago
Uku Taht 759c21fff0 Use cloudflare header for fingerprint 7 years ago
Uku Taht 16b2dbf023 Store raw fingerprint for testing 7 years ago
Uku Taht 158dd3f822 Strip www from domain 7 years ago
Uku Taht 0875d57b59 Track fingerprint 7 years ago
Uku Taht 8a4d0a91d1
WIP: New UI updates (#19)
* WIP: New UI idea

* Remove hover styling if things are not clickable

* Improve mobile view

* Remove dead code

* Fade in tabs

* Update landing page with new style

* Fix countries test

* Fix alignment in conversions report
7 years ago
Uku Taht 3679a7351f Remove www from domain 7 years ago
Uku Taht 7dbbc8ba22
Configurable site id (#30)
* Use site id instead of hostname for events

* Use site id in domain status check

* Revert change to tracking module

* Catch more places where link generation needed updating

* Rename site_id to domain

* Drop hostname index from events
7 years ago
Uku Taht 423db302f7 Only count new visitors in referrer report 7 years ago
Uku Taht 254d34d0a4 Trim trailing slash from referrer 7 years ago
Uku Taht 29ae3a2c21 Show bounce rate for referrers and pages 7 years ago
Uku Taht df1ba2cd82 Remove session length from the UI 7 years ago
Uku Taht 980275092d Show bounce rate and session length 7 years ago
Uku Taht ddac5685a2 Add unload event to the tracking script 7 years ago
Uku Taht f7d752988a Add sessions 7 years ago
Uku Taht 5ee2d908f2 Show conversion rate in the top stats when filtered for goal 7 years ago
Uku Taht 3b533fae21 Compare graph when filtering for goal 7 years ago
Uku Taht c540c70e87 Show conversion rate when filtering for goal 7 years ago
Uku Taht f71f98a521 Test Google referrer drilldown 7 years ago
Uku Taht 96abfc4ea1 Click on goal to see conversions for it 7 years ago
Uku Taht e8f20e67cc
React (#17)
* Load dashboard with react

* Rename stast2 to dashboard

* Save timeframe on the frontend

* Implement current visitors

* Implement comparisons

* React to route changes

* Add modals

* Show number of visitors on hover

* Show 'Today' for today

* Add 30 days

* Show referrer drilldown

* Arrow keys to go back and forward

* Improve comparisons UI

* Fix dropdown when clicking on it

* Verify API access in a memoized fashion

* Test API access

* Test stats through controller

* Move map formatting from stats controller to stats

* Remove unused code

* Remove dead code from query

* Remove dead code from stats templates

* Add stats view test back in

* Render modal inside the modal component

* Implement google search terms

* Add explanation for screen sizes

* Separate dashboard JS from the app js
7 years ago
Uku Taht d687663b80 Use new /event endpoint for pageviews 7 years ago
Uku Taht 3ea64de42b Add `name` to events 7 years ago
Uku Taht 0c453be08c Rename pageviews to events 7 years ago
Uku Taht 71edf2c86d Remove unused fields from pageviews 7 years ago
Uku Taht d2855210de Fix bug with screen size 7 years ago
Uku Taht 779d64e19a Initial commit 7 years ago