diff --git a/frontend/src/routes/company/[id]/stats/+page.svelte b/frontend/src/routes/company/[id]/stats/+page.svelte index e51a9b0..7d4b0a8 100644 --- a/frontend/src/routes/company/[id]/stats/+page.svelte +++ b/frontend/src/routes/company/[id]/stats/+page.svelte @@ -30,6 +30,7 @@ const emailsSent = stats.emailsSent || 0; const read = stats.trackingPixelLoaded || 0; const clicked = stats.websiteVisits || 0; + const submitted = stats.dataSubmissions || 0; const reported = stats.reported || 0; function pct(n, d) { @@ -52,6 +53,11 @@ absolute: pct(clicked, totalRecipients), relative: pct(clicked, read) }, + submitted: { + count: submitted, + absolute: pct(submitted, totalRecipients), + relative: pct(submitted, clicked) + }, reported: { count: reported, absolute: pct(reported, totalRecipients), @@ -374,10 +380,10 @@ - +