mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-23 22:11:09 +03:00
e3268c8c59
closes https://linear.app/tryghost/issue/ANAL-111/rename-hits-to-pageviews-inside-of-tinybird - We currently have two concepts: visits (unique visits) and pageviews (also called hits) - We want to standardise on this terminology, so inside tinybird, we're going to call hit "pageviews" to make it super clear what's happening
19 lines
715 B
Plaintext
19 lines
715 B
Plaintext
SCHEMA >
|
|
`site_uuid` String,
|
|
`date` Date,
|
|
`session_id` String,
|
|
`member_status` SimpleAggregateFunction(any, String),
|
|
`post_uuid` SimpleAggregateFunction(any, String),
|
|
`device` SimpleAggregateFunction(any, String),
|
|
`browser` SimpleAggregateFunction(any, String),
|
|
`location` SimpleAggregateFunction(any, String),
|
|
`source` SimpleAggregateFunction(any, String),
|
|
`pathname` SimpleAggregateFunction(any, String),
|
|
`first_view` SimpleAggregateFunction(min, DateTime),
|
|
`latest_view` SimpleAggregateFunction(max, DateTime),
|
|
`pageviews` AggregateFunction(count)
|
|
|
|
ENGINE AggregatingMergeTree
|
|
ENGINE_PARTITION_KEY toYYYYMM(date)
|
|
ENGINE_SORTING_KEY date, session_id, site_uuid
|