Commit Graph

33 Commits (ad1a39dbdeccb0b0784fa56bc3ddb3d68b0c680d)

Author SHA1 Message Date
Uku Taht a228c6162f Default to empty pathname 7 years ago
Uku Taht 0ccb893c04 Ingest with new CH schema 7 years ago
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 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 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 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 254d34d0a4 Trim trailing slash from referrer 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 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