Componenti
Marketing
Widget marketing — performance campagne, gestione lead e metriche social.
I widget marketing coprono il funnel digitale: campagne, lead nurturing, metriche social aggregate per piattaforma. Tutti estendono BaseWidgetProps.
CampaignPerformance
Performance campagne con metriche principali e grafico distribuzione budget.
| Prop | Tipo | Descrizione |
|---|---|---|
metrics | CampaignMetric[] | Metriche principali |
campaigns | Campaign[] | Campagne |
maxCampaigns | number | Numero massimo da mostrare |
showBudgetChart | boolean | Mostra grafico distribuzione budget |
selectedPeriod | string | Periodo selezionato |
LeadsWidget
Pipeline lead con stage, statistiche e lista recenti.
| Prop | Tipo | Descrizione |
|---|---|---|
stages | LeadStage[] | Stage pipeline con count, value, color |
recentLeads | Lead[] | Lead recenti con status, source, value, score? |
totalLeads | number | Numero totale lead |
totalValue | number | Valore totale pipeline |
conversionTrend | TrendValue | Trend conversion rate |
maxLeads | number | Numero massimo da mostrare |
<PzetaDashboard :config="{ widgets: [{
id: 'leads', type: WidgetType.LeadsWidget, width: 8, height: 3,
props: { stages, recentLeads, totalLeads: 248, totalValue: 1250000 }
}] }" />
SocialMetrics
Metriche social aggregate e per singola piattaforma.
| Prop | Tipo | Descrizione |
|---|---|---|
overview | SocialOverview | Aggregati totalFollowers/followersTrend/totalEngagement/avgEngagementRate/topPlatform |
platforms | SocialPlatformMetrics[] | Metriche per piattaforma con followers, followersChange, engagement, posts, impressions, clicks |
selectedPeriod | string | Periodo selezionato |
showPlatformDetails | boolean | Mostra dettagli per piattaforma |