mirror of
https://github.com/rybbit-io/rybbit.git
synced 2025-05-11 12:25:36 +02:00
im dumb
This commit is contained in:
parent
4f4bea40b7
commit
1ccf714b91
1 changed files with 2 additions and 3 deletions
|
@ -62,7 +62,6 @@ class PageviewQueue {
|
|||
|
||||
const countryCode = dataForIp?.data?.countryIso || "";
|
||||
const regionCode = dataForIp?.data?.subdivisions?.[0]?.isoCode || "";
|
||||
console.info(dataForIp);
|
||||
const latitude = dataForIp?.data?.latitude || 0;
|
||||
const longitude = dataForIp?.data?.longitude || 0;
|
||||
|
||||
|
@ -89,8 +88,8 @@ class PageviewQueue {
|
|||
country: countryCode,
|
||||
iso_3166_2:
|
||||
countryCode && regionCode ? countryCode + "-" + regionCode : "",
|
||||
latitude: latitude || 0,
|
||||
longitude: longitude || 0,
|
||||
lat: latitude || 0,
|
||||
lon: longitude || 0,
|
||||
type: pv.type || "pageview",
|
||||
event_name: pv.event_name || "",
|
||||
properties: pv.properties,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue