Pixel route.

This commit is contained in:
Mike Cao 2025-08-18 15:49:10 -07:00
parent 3c5c1e48e9
commit 0ac8bd41b6
10 changed files with 139 additions and 64 deletions

View file

@ -11,8 +11,8 @@ export interface SaveEventArgs {
websiteId: string;
sessionId: string;
visitId: string;
eventType: number;
createdAt?: Date;
eventType?: number;
// Page
pageTitle?: string;
@ -115,7 +115,7 @@ async function relationalQuery({
ttclid,
lifatid,
twclid,
eventType: eventType || (eventName ? EVENT_TYPE.customEvent : EVENT_TYPE.pageView),
eventType,
eventName: eventName ? eventName?.substring(0, EVENT_NAME_LENGTH) : null,
tag,
hostname,