Skip to main content

TypeAlias.LoyaltyMetrics

type LoyaltyMetrics = {
activeAccounts: number;
netCirculation: string;
pointsBurned: string;
pointsInCirculation: string;
tierDistribution: {
accountCount: number;
requiredVisits: number;
tierName: string;
}[];
totalVisits: number;
walletInstallation?: {
appleInstalled: number;
applePercentage: number;
combinedInstalled: number;
combinedPercentage: number;
googleInstalled: number;
googlePercentage: number;
totalAccounts: number;
};
};

Loyalty metrics for tracking program engagement and customer behavior.

Used by the metrics dashboard to monitor loyalty program health.

Type Declaration

NameType
activeAccountsnumber
netCirculationstring
pointsBurnedstring
pointsInCirculationstring
tierDistribution{ accountCount: number; requiredVisits: number; tierName: string; }[]
totalVisitsnumber
walletInstallation?{ appleInstalled: number; applePercentage: number; combinedInstalled: number; combinedPercentage: number; googleInstalled: number; googlePercentage: number; totalAccounts: number; }
walletInstallation.appleInstallednumber
walletInstallation.applePercentagenumber
walletInstallation.combinedInstallednumber
walletInstallation.combinedPercentagenumber
walletInstallation.googleInstallednumber
walletInstallation.googlePercentagenumber
walletInstallation.totalAccountsnumber