dashboard page good

This commit is contained in:
2025-03-25 21:02:17 +08:00
parent efdfe8bf8e
commit ecf21a812f
5 changed files with 90 additions and 21 deletions

View File

@@ -35,14 +35,18 @@ export interface TimeSeriesData {
}
export interface GeoData {
country: string;
region: string;
city: string;
location?: string;
country?: string;
region?: string;
city?: string;
visits: number;
uniqueVisitors: number;
uniqueVisitors?: number;
visitors?: number;
percentage: number;
}
export type DeviceType = 'mobile' | 'desktop' | 'tablet' | 'other';
export interface DeviceAnalytics {
deviceTypes: {
type: string;
@@ -82,4 +86,26 @@ export interface EventsSummary {
count: number;
percentage: number;
}[];
}
export interface ConversionStats {
totalConversions: number;
conversionRate: number;
averageValue: number;
byType: {
type: string;
count: number;
percentage: number;
value: number;
}[];
}
export interface EventFilters {
startTime?: string;
endTime?: string;
eventType?: string;
linkId?: string;
linkSlug?: string;
page?: number;
pageSize?: number;
}