update event type

This commit is contained in:
Bill Yang 2025-03-15 23:25:02 -07:00
parent aa1eb94338
commit 545c3bc174
7 changed files with 10 additions and 8 deletions

View file

@ -10,7 +10,7 @@ type TotalPayload = TrackingPayload & {
ua: UAParser.IResult;
referrer: string;
ipAddress: string;
event_type?: string;
type?: string;
event_name?: string;
properties?: string;
};
@ -85,7 +85,7 @@ class PageviewQueue {
country: countryCode,
iso_3166_2:
countryCode && regionCode ? countryCode + "-" + regionCode : "",
event_type: pv.event_type || "pageview",
type: pv.type || "pageview",
event_name: pv.event_name || "",
properties: pv.properties,
};