The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
ensure countries / cities groupBy are discriminated correctly
Steven Teyee8c1f884c09
diff --git a/apps/web/lib/zod/schemas/analytics-response.ts b/apps/web/lib/zod/schemas/analytics-response.tsindex eb8e39363a..baeb6492f2 100644--- a/apps/web/lib/zod/schemas/analytics-response.ts+++ b/apps/web/lib/zod/schemas/analytics-response.ts@@ -65,6 +65,7 @@ export const analyticsResponse = {.describe("The 2-letter ISO 3166-1 country code for the country associated with the location of the user. Learn more: https://d.to/geo",),+ city: z.literal("*").default("*"),clicks: z.number().describe("The number of clicks from this country")