mirror of
https://github.com/rybbit-io/rybbit.git
synced 2025-05-11 12:25:36 +02:00
Refactor analytics queries to use 'events' table instead of 'pageviews'
- Updated multiple analytics functions to replace references from 'pageviews' to 'events' for consistency in data tracking. - Adjusted SQL queries across various files including getEvents, getFunnel, getLiveSessionLocations, and others to ensure accurate event data retrieval. - Enhanced the deleteSite function to remove events associated with a site, improving data management.
This commit is contained in:
parent
b234a72f06
commit
009c04cee1
19 changed files with 36 additions and 35 deletions
|
@ -116,7 +116,7 @@ class PageviewQueue {
|
|||
// Bulk insert into database
|
||||
try {
|
||||
await clickhouse.insert({
|
||||
table: "pageviews",
|
||||
table: "events",
|
||||
values: processedPageviews,
|
||||
format: "JSONEachRow",
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue