mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-29 15:12:58 +03:00
2016e6a6df
ref https://linear.app/ghost/issue/ANAL-115/data-retention - The bad news here is I didn't notice that the tinybird web analytics starter kit included a TTL on the analytics_events datasource of 60 days - This means any data older than 60days was automatically dropped from the table - I updated this in the UI when I noticed it a few days ago, this makes sure it can't come back - The good news is that we don't have to implement anything to make this work when we do get to the point where we want a TTL!
16 lines
413 B
Plaintext
16 lines
413 B
Plaintext
DESCRIPTION >
|
|
Analytics events landing data source
|
|
|
|
TOKEN "tracker" APPEND
|
|
|
|
SCHEMA >
|
|
`timestamp` DateTime `json:$.timestamp`,
|
|
`session_id` String `json:$.session_id`,
|
|
`action` LowCardinality(String) `json:$.action`,
|
|
`version` LowCardinality(String) `json:$.version`,
|
|
`payload` String `json:$.payload`
|
|
|
|
ENGINE MergeTree
|
|
ENGINE_PARTITION_KEY toYYYYMM(timestamp)
|
|
ENGINE_SORTING_KEY timestamp
|