Updated pixel/link endpoints. Added name to rawQuery.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { uuid } from '@/lib/crypto';
|
||||
import { EVENT_NAME_LENGTH, URL_LENGTH, EVENT_TYPE, PAGE_TITLE_LENGTH } from '@/lib/constants';
|
||||
import { EVENT_NAME_LENGTH, URL_LENGTH, PAGE_TITLE_LENGTH } from '@/lib/constants';
|
||||
import { CLICKHOUSE, PRISMA, runQuery } from '@/lib/db';
|
||||
import clickhouse from '@/lib/clickhouse';
|
||||
import kafka from '@/lib/kafka';
|
||||
@@ -66,10 +66,9 @@ async function relationalQuery({
|
||||
websiteId,
|
||||
sessionId,
|
||||
visitId,
|
||||
createdAt,
|
||||
eventType,
|
||||
createdAt,
|
||||
pageTitle,
|
||||
tag,
|
||||
hostname,
|
||||
urlPath,
|
||||
urlQuery,
|
||||
@@ -78,6 +77,7 @@ async function relationalQuery({
|
||||
referrerDomain,
|
||||
eventName,
|
||||
eventData,
|
||||
tag,
|
||||
utmSource,
|
||||
utmMedium,
|
||||
utmCampaign,
|
||||
@@ -154,9 +154,16 @@ async function clickhouseQuery({
|
||||
websiteId,
|
||||
sessionId,
|
||||
visitId,
|
||||
distinctId,
|
||||
eventType,
|
||||
createdAt,
|
||||
pageTitle,
|
||||
hostname,
|
||||
urlPath,
|
||||
urlQuery,
|
||||
referrerPath,
|
||||
referrerQuery,
|
||||
referrerDomain,
|
||||
distinctId,
|
||||
browser,
|
||||
os,
|
||||
device,
|
||||
@@ -165,15 +172,9 @@ async function clickhouseQuery({
|
||||
country,
|
||||
region,
|
||||
city,
|
||||
tag,
|
||||
hostname,
|
||||
urlPath,
|
||||
urlQuery,
|
||||
referrerPath,
|
||||
referrerQuery,
|
||||
referrerDomain,
|
||||
eventName,
|
||||
eventData,
|
||||
tag,
|
||||
utmSource,
|
||||
utmMedium,
|
||||
utmCampaign,
|
||||
@@ -215,7 +216,7 @@ async function clickhouseQuery({
|
||||
ttclid: ttclid,
|
||||
li_fat_id: lifatid,
|
||||
twclid: twclid,
|
||||
event_type: eventName ? EVENT_TYPE.customEvent : EVENT_TYPE.pageView,
|
||||
event_type: eventType,
|
||||
event_name: eventName ? eventName?.substring(0, EVENT_NAME_LENGTH) : null,
|
||||
tag: tag,
|
||||
distinct_id: distinctId,
|
||||
|
||||
Reference in New Issue
Block a user