mirror of
https://github.com/rybbit-io/rybbit.git
synced 2025-05-11 12:25:36 +02:00
update event type
This commit is contained in:
parent
aa1eb94338
commit
545c3bc174
7 changed files with 10 additions and 8 deletions
|
@ -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,
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue